Package arc.util.io

Class ReusableByteInStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class ReusableByteInStream extends ByteArrayInputStream
A ByteArrayInputStream that can have its content bytes reset.
  • Constructor Details

    • ReusableByteInStream

      public ReusableByteInStream()
      setBytes(byte[]) must be called before this stream can be used.
  • Method Details

    • position

      public int position()
    • setBytes

      public void setBytes(byte[] bytes)
    • setBytes

      public void setBytes(byte[] bytes, int offset, int length)