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
-
Method Summary
Methods inherited from class nom.tam.util.FitsDecoder
booleanFor, booleanObjectFor, readArray
Methods 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!).
-
FitsDecoder
instead 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 useInputDecoder
as a base for implementing efficient custom decoding of binary inputs in general.