Class ExposedBufferByteArrayOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class ExposedBufferByteArrayOutputStream
    extends java.io.ByteArrayOutputStream
    Exposes direct access to the underlying buffer
    • Field Summary

      • Fields inherited from class java.io.ByteArrayOutputStream

        buf, count
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBuffer()  
      • Methods inherited from class java.io.ByteArrayOutputStream

        close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
      • Methods inherited from class java.io.OutputStream

        flush, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExposedBufferByteArrayOutputStream

        public ExposedBufferByteArrayOutputStream()
      • ExposedBufferByteArrayOutputStream

        public ExposedBufferByteArrayOutputStream​(int size)
    • Method Detail

      • getBuffer

        public byte[] getBuffer()