Package nom.tam.util
Class BufferDecoder
java.lang.Object
nom.tam.util.InputDecoder
nom.tam.util.FitsDecoder
nom.tam.util.BufferDecoder
Deprecated.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class nom.tam.util.FitsDecoder
booleanFor, booleanObjectFor, readArrayMethods inherited from class nom.tam.util.InputDecoder
readArrayFully, readImage
-
Constructor Details
-
BufferDecoder
Deprecated.- 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.