Package nom.tam.fits
Class NullData
java.lang.Object
nom.tam.fits.Data
nom.tam.fits.ImageData
nom.tam.fits.NullData
- All Implemented Interfaces:
FitsElement
A subclass of
Data containing no actual data. It wraps an underlying data of null.- Since:
- 1.18
- Author:
- Attila Kovacs
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidread(ArrayDataInput in) Reads the data or skips over it for reading later, depending on whether reading from a stream or a random acessible input, respectively.voidSets the buffer that may hold a serialized version of the data for this image.voidWrites the contents of the element to a data sink, adding padding as necessary if the element (such as a header or data segment) is expected to complete the FITS block of 2880 bytes.Methods inherited from class nom.tam.fits.ImageData
convertTo, from, getDimensions, getQuantizer, getTiler, getType, isComplexValued, overrideHeaderAxes, setQuantizer, toHDUMethods inherited from class nom.tam.fits.Data
calcChecksum, detach, getData, getFileOffset, getKernel, getSize, isDeferred, isEmpty, reset, rewrite, rewriteable
-
Constructor Details
-
NullData
public NullData()
-
-
Method Details
-
read
Description copied from class:DataReads the data or skips over it for reading later, depending on whether reading from a stream or a random acessible input, respectively.
In case the argument is a an instance of
RandomAccessinput (such as aFitsFile, the call will simply note where in the file the data segment can be found for reading at a later point, only when the data content is accessed. This 'deferred' reading behavior make it possible to process large HDUs even with small amount of RAM, and can result in a significant performance boost when inspectring large FITS files, or using only select content from large FITS files.- Specified by:
readin interfaceFitsElement- Overrides:
readin classImageData- Parameters:
in- The input data stream- See Also:
-
write
Description copied from interface:FitsElementWrites the contents of the element to a data sink, adding padding as necessary if the element (such as a header or data segment) is expected to complete the FITS block of 2880 bytes.- Specified by:
writein interfaceFitsElement- Overrides:
writein classImageData- Parameters:
o- The data sink.
-
setBuffer
Description copied from class:ImageDataSets the buffer that may hold a serialized version of the data for this image.
-