Class ResizeableFastByteArrayOutputStream

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

    public class ResizeableFastByteArrayOutputStream
    extends FastByteArrayOutputStream
    ByteArrayOutputStream implementation that doesn't synchronize methods and doesn't copy the data on toByteArray(). Furthermore, no capacity changes are allowed. Once the initial capacity it set, it is assumed final!