Package nom.tam.util
Class BufferEncoder
java.lang.Object
nom.tam.util.OutputEncoder
nom.tam.util.FitsEncoder
nom.tam.util.BufferEncoder
Deprecated.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class nom.tam.util.FitsEncoder
byteForBoolean, computeSize, writeArray
Methods inherited from class nom.tam.util.OutputEncoder
getCount
-
Constructor Details
-
BufferEncoder
Deprecated.- Parameters:
p
- Unused, but the position and length fields are set/reset as to pretend that the buffer is perpetually half filled with data, and with position at 0. However, at no point will there be any data actually in the buffer of this object. You should by all means avoid directly writing data from this buffer to the output stream, other than the hopefully untriggered write of an existingneedBuffer(int)
implementation (and it's safest if you don't override or ever callneedBuffer(int)
from your code!).
-
FitsEncoder
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 writing non-FITS encoding you may also useOutputEncoder
as a base for implementing efficient custom encoding of binary outputs in general.