Class NonCopyingByteArrayOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    final class NonCopyingByteArrayOutputStream
    extends ByteArrayOutputStream
    Used when we know that the stream will never be used again, therefore we can skip copying the data WARNING: This should only be used when we know that we will write at least this many bytes to the stream
    • Constructor Detail

      • NonCopyingByteArrayOutputStream

        NonCopyingByteArrayOutputStream​(int size)