Package nom.tam.util

Class BufferEncoder


@Deprecated public abstract class BufferEncoder extends FitsEncoder
Deprecated.
Use 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 use OutputEncoder as a base for implementing efficient custom encoding of binary outputs in general.
See Also:
  • Constructor Details

    • BufferEncoder

      public BufferEncoder(BufferPointer p)
      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 existing needBuffer(int) implementation (and it's safest if you don't override or ever call needBuffer(int) from your code!).