Module org.apache.santuario.xmlsec
Package org.apache.xml.security.utils
Class UnsyncByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.xml.security.utils.UnsyncByteArrayOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class UnsyncByteArrayOutputStream extends OutputStream
A simple Unsynced ByteArrayOutputStream
-
-
Constructor Summary
Constructors Constructor Description UnsyncByteArrayOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()byte[]toByteArray()voidwrite(byte[] arg0)voidwrite(byte[] arg0, int arg1, int arg2)voidwrite(int arg0)voidwriteTo(OutputStream out)Takes the contents of this stream and writes it to the output streamout.-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Method Detail
-
write
public void write(byte[] arg0)
- Overrides:
writein classOutputStream
-
write
public void write(byte[] arg0, int arg1, int arg2)- Overrides:
writein classOutputStream
-
write
public void write(int arg0)
- Specified by:
writein classOutputStream
-
toByteArray
public byte[] toByteArray()
-
reset
public void reset()
-
writeTo
public void writeTo(OutputStream out) throws IOException
Takes the contents of this stream and writes it to the output streamout.- Parameters:
out- an OutputStream on which to write the contents of this stream.- Throws:
IOException- if an error occurs while writing toout.
-
-