Package de.intarsys.tools.stream
Class FastByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- de.intarsys.tools.stream.FastByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class FastByteArrayOutputStream extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description FastByteArrayOutputStream()
FastByteArrayOutputStream(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
void
reset()
int
size()
byte[]
toByteArray()
void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
reset
public void reset()
-
size
public int size()
-
toByteArray
public byte[] toByteArray()
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.OutputStream
-
write
public void write(int b)
- Specified by:
write
in classjava.io.OutputStream
-
-