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.OutputStream
Like 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 int
getBytesWritten()
byte[]
toByteArray()
void
write(int value)
-