Class BufferDecoder
java.lang.Object
nom.tam.util.InputDecoder
nom.tam.util.FitsDecoder
nom.tam.util.BufferDecoder
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FitsDecoder
booleanFor, booleanObjectFor, readArrayModifier and TypeMethodDescriptionstatic final booleanbooleanFor(int c) Gets thebooleanequivalent for a FITS byte value representing a logical value.static final BooleanbooleanObjectFor(int c) Gets thebooleanequivalent for a FITS byte value representing a logical value.longSee the contract ofArrayDataInput.readLArray(Object).Methods inherited from class InputDecoder
readArrayFully, readImageModifier and TypeMethodDescriptionvoidBased onInputDecoder.readArray(Object), but guaranteeing a complete read of the supplied object or else anEOFExceptionis thrown.voidLikeInputDecoder.readArrayFully(Object)but strictly for numerical types only.
-
Constructor Details
-
BufferDecoder
Deprecated.Instantiates a new decoder for FITS data types.- Parameters:
p- Unused, but the position and length fields are set/reset as to pretend that half of the buffer is perpetually available for reading. However, at no point will there be any data actually in the buffer of this object, and you should by all means avoid directly loading data from the stream into this dead-end buffer, other than the hopefully untiggered existing implementation ofcheckBuffer(int)(and it's safest if you don't override or ever callcheckBuffer(int)from your code!).
-
FitsDecoderinstead which provides a similar function but in a more consistent way and with a less misleading name. This is a rusty rail implementation for of an older abandoned class only, unsafe for general use. For reading non-FITS encoding you may also useInputDecoderas a base for implementing efficient custom decoding of binary inputs in general.