Package kilim.nio

Class ExposedBais

All Implemented Interfaces:
Closeable, AutoCloseable

public class ExposedBais extends ByteArrayInputStream
A hack that exposes the bytearray inside the ByteArrayInputStream. This is to avoid copying the byte array when toByteArray() is called
  • Constructor Details

    • ExposedBais

      public ExposedBais(int size)
    • ExposedBais

      public ExposedBais(byte[] buf, int offset, int length)
    • ExposedBais

      public ExposedBais(byte[] buf)
  • Method Details

    • toByteArray

      public byte[] toByteArray()
    • setCount

      public void setCount(int n)