Package org.apache.xml.security.utils
Class UnsyncBufferedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.xml.security.utils.UnsyncBufferedOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class UnsyncBufferedOutputStream extends OutputStream
A class that buffers without synchronizing its methods- Author:
- raul
-
-
Constructor Summary
Constructors Constructor Description UnsyncBufferedOutputStream(OutputStream out)Creates a buffered output stream without synchronization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(byte[] arg0)voidwrite(byte[] arg0, int arg1, int len)voidwrite(int arg0)-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
UnsyncBufferedOutputStream
public UnsyncBufferedOutputStream(OutputStream out)
Creates a buffered output stream without synchronization- Parameters:
out- the outputstream to buffer
-
-
Method Detail
-
write
public void write(byte[] arg0) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] arg0, int arg1, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int arg0) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-