Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.0
public class ByteArrayOutputStream extends OutputStream {
// Public Constructors
public ByteArrayOutputStream();
public ByteArrayOutputStream(int size);
// Protected Instance Variables
protected byte[] buf;
protected int count;
// Public Instance Methods
public synchronized void reset();
public int size();
public synchronized byte[] toByteArray();
public String toString(); // Overrides Object.toString()
1.1 public String toString(String enc) throws UnsupportedEncodingException;
# public String toString(int hibyte);
public synchronized void write(int b); // Defines OutputStream.write()
public synchronized void write(byte[] b, int off, int len); // Overrides OutputStream.write()
public synchronized void writeTo(OutputStream out) throws IOException;
}