|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
de.intarsys.tools.stream.FastByteArrayOutputStream
public class FastByteArrayOutputStream
Field Summary | |
---|---|
protected byte[] |
buf
The buffer where data is stored. |
protected int |
count
The number of valid bytes in the buffer. |
Constructor Summary | |
---|---|
FastByteArrayOutputStream()
|
|
FastByteArrayOutputStream(int size)
|
Method Summary | |
---|---|
byte[] |
getBytes()
|
void |
reset()
|
int |
size()
|
byte[] |
toByteArray()
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
---|
close, flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] buf
protected int count
Constructor Detail |
---|
public FastByteArrayOutputStream()
public FastByteArrayOutputStream(int size)
Method Detail |
---|
public byte[] getBytes()
public void reset()
public int size()
public byte[] toByteArray()
public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream
public void write(int b)
write
in class java.io.OutputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |