Class NonCopyingByteArrayOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
io.quarkus.opentelemetry.runtime.exporter.otlp.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 Details

    • NonCopyingByteArrayOutputStream

      NonCopyingByteArrayOutputStream(int size)
  • Method Details