|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
com.imagero.uio.io.ByteArrayOutputStream2
ByteArrayOutputStream which writes to external buffer.
Field Summary |
Fields inherited from class java.io.ByteArrayOutputStream |
buf, count |
Constructor Summary | |
ByteArrayOutputStream2(byte[] buffer)
|
Method Summary | |
void |
write(byte[] b,
int off,
int len)
Writes bytes from the specified byte array to buffer |
void |
write(int b)
write given byte to buffer. |
Methods inherited from class java.io.ByteArrayOutputStream |
close, reset, size, toByteArray, toString, toString, toString, writeTo |
Methods inherited from class java.io.OutputStream |
flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ByteArrayOutputStream2(byte[] buffer)
Method Detail |
public void write(int b)
b
- byte to write
java.lang.ArrayIndexOutOfBoundsException
- if new byte count would exceed length of buffer after this operationpublic void write(byte[] b, int off, int len)
b
- byte arrayoff
- start offsetlen
- number of bytes to write
java.lang.ArrayIndexOutOfBoundsException
- if new byte count would exceed length of buffer after this operation (however the max possible byte count is written first)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |