Package arc.util.io

Class Streams.OptimizedByteArrayOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
arc.util.io.Streams.OptimizedByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
Streams

public static class Streams.OptimizedByteArrayOutputStream extends ByteArrayOutputStream
A ByteArrayOutputStream which avoids copying of the byte array if possible.
  • Constructor Details

    • OptimizedByteArrayOutputStream

      public OptimizedByteArrayOutputStream(int initialSize)
  • Method Details