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:
Closeable, Flushable

public class UnsyncByteArrayOutputStream
extends 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 OutputStream

write

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

write

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

toByteArray

public byte[] toByteArray()

reset

public void reset()

close

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


Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.