JML

java.io
Class ByteArrayOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.ByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class ByteArrayOutputStream
extends OutputStream


Field Summary
protected  byte[] buf
           
protected  int count
           
 
Constructor Summary
ByteArrayOutputStream()
           
ByteArrayOutputStream(int)
           
 
Method Summary
 void close()
           
 void reset()
           
 int size()
           
 byte[] toByteArray()
           
 String toString()
           
 String toString(int)
           
 String toString(String)
           
 void write(byte[], int, int)
           
 void write(int)
           
 void writeTo(OutputStream)
           
 
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
 

Field Detail

buf

protected byte[] buf

count

protected int count
Constructor Detail

ByteArrayOutputStream

public ByteArrayOutputStream()

ByteArrayOutputStream

public ByteArrayOutputStream(int)
Method Detail

write

public void write(int)

write

public void write(byte[],
                  int,
                  int)
Overrides:
write in class OutputStream

writeTo

public void writeTo(OutputStream)
             throws IOException
Throws:
IOException

reset

public void reset()

toByteArray

public byte[] toByteArray()

size

public int size()

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(String)
                throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

toString

public String toString(int)

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.