Class UnsyncBufferedOutputStream
java.lang.Object
java.io.OutputStream
org.docx4j.org.apache.xml.security.utils.UnsyncBufferedOutputStream
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class UnsyncBufferedOutputStream
extends java.io.OutputStream
A class that buffers without synchronizing its methods
- Author:
- raul
-
Constructor Summary
Constructors Constructor Description UnsyncBufferedOutputStream(java.io.OutputStream out)Creates a buffered output stream without synchronization -
Method Summary
-
Constructor Details
-
UnsyncBufferedOutputStream
public UnsyncBufferedOutputStream(java.io.OutputStream out)Creates a buffered output stream without synchronization- Parameters:
out- the outputstream to buffer
-
-
Method Details
-
write
public void write(byte[] arg0) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] arg0, int arg1, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(int arg0) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-