org.apache.xml.security.utils
Class UnsyncByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.xml.security.utils.UnsyncByteArrayOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class UnsyncByteArrayOutputStream
extends java.io.OutputStream

A simple Unsynced ByteArrayOutputStream

Author:
raul

Constructor Summary
UnsyncByteArrayOutputStream()
           
 
Method Summary
 void close()
           
 void reset()
           
 byte[] toByteArray()
           
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsyncByteArrayOutputStream

public UnsyncByteArrayOutputStream()
Method Detail

write

public void write(byte[] arg0)
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
Overrides:
write in class java.io.OutputStream

write

public void write(int arg0)
Specified by:
write in class java.io.OutputStream

toByteArray

public byte[] toByteArray()

reset

public void reset()

close

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