Package nom.tam.util

Class ArrayOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, OutputWriter
Direct Known Subclasses:
FitsOutputStream

public class ArrayOutputStream extends BufferedOutputStream implements OutputWriter
Efficient writing of binary arrays to streams with custom binary encoding.
Since:
1.16
Author:
Attila Kovacs
See Also:
  • Constructor Details

    • ArrayOutputStream

      public ArrayOutputStream(OutputStream o, int bufLength, OutputEncoder java2bin)
      Instantiates a new output stream for efficient array transactions.
      Parameters:
      o - the underlying output stream
      bufLength - the buffer size in bytes.
      java2bin - the conversion from Java arrays to the binary representation in the stream.
  • Method Details