Class ByteArrayIOFileStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

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

    • ByteArrayIOFileStream

      public ByteArrayIOFileStream(long maxLength)
      creates an empty input output stream class
      Parameters:
      maxLength - the maximum length in memory
    • ByteArrayIOFileStream

      public ByteArrayIOFileStream(InputStream is, long maxLength)
      creates an input output stream class from any stream if is already is a buffered inputstream, no copy is made
      Parameters:
      is - the inputstream to buffer
      maxLength - the maximum length in memory
    • ByteArrayIOFileStream

      public ByteArrayIOFileStream(File f, long maxLength, boolean readOnly)
      create a ByteArrayIOStream from a file
      Parameters:
      f - the file
      maxLength - the maximum length in memory
      readOnly -
      Throws:
      IOException
  • Method Details