Class AoByteArrayInputStream

java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.aoapps.lang.io.AoByteArrayInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class AoByteArrayInputStream extends ByteArrayInputStream
Provides direct access to the internal byte[].
Author:
AO Industries, Inc.
  • Constructor Details

    • AoByteArrayInputStream

      public AoByteArrayInputStream(byte[] buf)
  • Method Details

    • getInternalByteArray

      public byte[] getInternalByteArray()
      Provides direct access to the internal byte[] to avoid unnecessary copying of the array.
    • fillFrom

      public void fillFrom(DataInput in) throws IOException
      Throws:
      IOException
    • fillFrom

      public void fillFrom(DataInput in, int len) throws IOException
      Throws:
      IOException