Class ByteArrayIOStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
ByteArrayIOFileStream

public class ByteArrayIOStream extends ByteArrayOutputStream
Shared input / outputStream class write once, read many...
  • Constructor Details

    • ByteArrayIOStream

      public ByteArrayIOStream()
      creates an empty input output stream class
    • ByteArrayIOStream

      public ByteArrayIOStream(int i)
      creates a sized input output stream class
      Parameters:
      i - the size of the stream
    • ByteArrayIOStream

      public ByteArrayIOStream(InputStream is)
      creates an input output stream class from any stream if is alraedy is a buffered inputstream, no copy is made
      Parameters:
      is - the inputstream to buffer
    • ByteArrayIOStream

      public ByteArrayIOStream(File f) throws IOException
      create a ByteArrayIOStream from a file
      Parameters:
      f - the file
      Throws:
      IOException
    • ByteArrayIOStream

      public ByteArrayIOStream(byte[] b)
      creates a sized input output stream class
      Parameters:
      b - the buffer to use (is NOT copied)
  • Method Details