JML

java.io
Class ByteArrayOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.ByteArrayOutputStream

public class ByteArrayOutputStream
extends OutputStream


Model Field Summary
 
Model fields inherited from class java.io.OutputStream
isOpen, output, outputBytes, wasClosed
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
protected  byte[] buf
           
protected  int count
           
 
Constructor Summary
ByteArrayOutputStream()
           
ByteArrayOutputStream(int)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
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

size

public int size()

close

public void close()
           throws IOException
Overrides:
close in class OutputStream
Throws:
IOException

reset

public void reset()

toByteArray

public byte[] toByteArray()

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

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(int)

toString

public String toString(String)
                throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

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.