Package nom.tam.fits
Class UndefinedData
java.lang.Object
nom.tam.fits.Data
nom.tam.fits.UndefinedData
- All Implemented Interfaces:
FitsElement
This class provides a simple holder for data which is not handled by other
classes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private byte[]
private static final Logger
Fields inherited from class nom.tam.fits.Data
dataSize, fileOffset, input
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an UndefinedData object using the specified object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fillHeader
(Header head) Fill header with keywords that describe data.getData()
protected long
Get the size in bytes of the datavoid
Read a data array into the current object and if needed position to the beginning of the next FITS block.void
Write the data -- including any buffering neededMethods inherited from class nom.tam.fits.Data
getFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffset
-
Field Details
-
LOG
-
BITS_PER_BYTE
private static final int BITS_PER_BYTE- See Also:
-
data
private byte[] data
-
-
Constructor Details
-
UndefinedData
- Throws:
FitsException
-
UndefinedData
Create an UndefinedData object using the specified object.- Parameters:
x
- object to create the hdu from
-
-
Method Details
-
fillHeader
Fill header with keywords that describe data.- Specified by:
fillHeader
in classData
- Parameters:
head
- The FITS header
-
getData
-
getTrueSize
protected long getTrueSize()Get the size in bytes of the data- Specified by:
getTrueSize
in classData
-
read
Description copied from interface:FitsElement
Read a data array into the current object and if needed position to the beginning of the next FITS block.- Specified by:
read
in interfaceFitsElement
- Specified by:
read
in classData
- Parameters:
i
- The input data stream- Throws:
FitsException
- if the read was unsuccessful.
-
write
Description copied from class:Data
Write the data -- including any buffering needed- Specified by:
write
in interfaceFitsElement
- Specified by:
write
in classData
- Parameters:
o
- The output stream on which to write the data.- Throws:
FitsException
- if the write was unsuccessful.
-