java.io
Class ByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
public class ByteArrayOutputStream
- extends OutputStream
Field Summary |
protected byte[] |
buf
|
protected int |
count
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
protected byte[] buf
count
protected int count
ByteArrayOutputStream
public ByteArrayOutputStream()
ByteArrayOutputStream
public ByteArrayOutputStream(int var0)
reset
public void reset()
size
public int size()
toByteArray
public byte[] toByteArray()
toString
public String toString(String var0)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
write
public void write(int var0)
- Specified by:
write
in class OutputStream
write
public void write(byte[] var0,
int var1,
int var2)
- Overrides:
write
in class OutputStream
writeTo
public void writeTo(OutputStream var0)
throws IOException
- Throws:
IOException