Module org.hsqldb

Class HsqlByteArrayOutputStream

java.lang.Object
java.io.OutputStream
org.hsqldb.lib.HsqlByteArrayOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable

public class HsqlByteArrayOutputStream extends OutputStream implements DataOutput
This class is a replacement for both java.io.ByteArrayOuputStream (without synchronization) and java.io.DataOutputStream
Since:
1.7.0
Author:
Fred Toussi (fredt@users dot sourceforge.net)
  • Constructor Details

    • HsqlByteArrayOutputStream

      public HsqlByteArrayOutputStream()
    • HsqlByteArrayOutputStream

      public HsqlByteArrayOutputStream(int size)
    • HsqlByteArrayOutputStream

      public HsqlByteArrayOutputStream(byte[] buffer)
    • HsqlByteArrayOutputStream

      public HsqlByteArrayOutputStream(InputStream input, int length) throws IOException
      Constructor from an InputStream limits size to the length argument. Throws if the actual length of the InputStream is smaller than length value.
      Parameters:
      input - InputStream
      length - int
      Throws:
      IOException - if an error occurs
    • HsqlByteArrayOutputStream

      public HsqlByteArrayOutputStream(InputStream input) throws IOException
      Throws:
      IOException
  • Method Details