public final class InitiallyReusableByteArrayOutputStream extends ByteArrayOutputStream
ByteArrayOutputStream
that takes a provided byte array as its
initial buffer. This is useful for situations where there is only one thread at
a time creating these objects and allocating the initial array is expensive.buf, count
Constructor and Description |
---|
InitiallyReusableByteArrayOutputStream(byte[] initialArray)
Builds an instance with an initial buffer.
|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
flush, write
Copyright © 2014 Feedzai. All Rights Reserved.