|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.ByteArrayOutputStream
An output stream that stores into a byte array
| Field Summary | |
protected byte[] |
buf
The buffer to store data in |
protected int |
count
The number of bytes in the buffer |
| Constructor Summary | |
ByteArrayOutputStream()
Create a new output stream |
|
ByteArrayOutputStream(int size)
Create a new output stream of the size |
|
| Method Summary | |
void |
close()
Close the stream |
void |
reset()
Reset the stream |
int |
size()
Return the size of the stream |
byte[] |
toByteArray()
Create a new array with the contents |
java.lang.String |
toString()
Convert to a string |
void |
write(byte[] b,
int off,
int len)
Write a byte array to the array |
void |
write(int b)
Write to the array |
| Methods inherited from class java.io.OutputStream |
flush, write |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected byte[] buf
protected int count
| Constructor Detail |
public ByteArrayOutputStream()
throws IllegalArgumentException
public ByteArrayOutputStream(int size)
throws IllegalArgumentException
size - The size
IllegalArgumentException - if the size is negative| Method Detail |
public void close()
throws IOException
close in class OutputStreamIOExceptionpublic void reset()
public int size()
public byte[] toByteArray()
public java.lang.String toString()
toString in class Objectpublic void write(int b)
write in interface Writablewrite in class OutputStreamb - The byte
public void write(byte[] b,
int off,
int len)
write in interface Writablewrite in class OutputStreamb - The arrayoff - The offsetlen - The length
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||