Package nom.tam.util

Class BufferedDataOutputStream

All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable, ArrayDataOutput, FitsIO, FitsOutput, OutputWriter

@Deprecated public class BufferedDataOutputStream extends FitsOutputStream
Deprecated.
Use FitsOutputStream, which provides the exact same functionality but with a less misleading name, or else use ArrayOutputStream as a base for an implementation with any (non-FITS) encoding.
  • Constructor Details

    • BufferedDataOutputStream

      public BufferedDataOutputStream(OutputStream o, int bufLength)
      Deprecated.
      Instantiates a new output stream for FITS data.
      Parameters:
      o - the underlying output stream
      bufLength - the size of the buffer to use in bytes.
    • BufferedDataOutputStream

      public BufferedDataOutputStream(OutputStream o)
      Deprecated.
      Instantiates a new output stream for FITS data, using a default buffer size.
      Parameters:
      o - the underlying output stream
  • Method Details

    • checkBuf

      @Deprecated protected void checkBuf(int need) throws IOException
      Deprecated.
      No longer used internally, but kept for back compatibility (and it does exactly nothing)
      Parameters:
      need - the number of consecutive bytes we need in the buffer for the next write.
      Throws:
      IOException - if there was an IO error flushing the buffer to the output to make avaiable the space required in the buffer.