Package kilim.nio

Class ExposedBaos

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

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

    • ExposedBaos

      public ExposedBaos()
    • ExposedBaos

      public ExposedBaos(int size)
  • Method Details