Class FastByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.commons.imaging.common.FastByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
class FastByteArrayOutputStream extends java.io.OutputStreamLike ByteArrayOutputStream, but has some performance benefit, because it's not thread safe.
-
-
Constructor Summary
Constructors Constructor Description FastByteArrayOutputStream(int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBytesWritten()byte[]toByteArray()voidwrite(int value)
-