com.liferay.portal.kernel.io.unsync
Class UnsyncBufferedOutputStream
java.lang.Object
java.io.OutputStream
com.liferay.portal.kernel.io.unsync.UnsyncFilterOutputStream
com.liferay.portal.kernel.io.unsync.UnsyncBufferedOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class UnsyncBufferedOutputStream
- extends UnsyncFilterOutputStream
See http://issues.liferay.com/browse/LPS-6648.
Field Summary |
protected byte[] |
buffer
|
protected int |
count
|
Method Summary |
void |
flush()
|
void |
write(byte[] byteArray)
|
void |
write(byte[] byteArray,
int offset,
int length)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected byte[] buffer
count
protected int count
UnsyncBufferedOutputStream
public UnsyncBufferedOutputStream(OutputStream outputStream)
UnsyncBufferedOutputStream
public UnsyncBufferedOutputStream(OutputStream outputStream,
int size)
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class UnsyncFilterOutputStream
- Throws:
IOException
write
public void write(byte[] byteArray,
int offset,
int length)
throws IOException
- Overrides:
write
in class UnsyncFilterOutputStream
- Throws:
IOException
write
public void write(byte[] byteArray)
throws IOException
- Overrides:
write
in class UnsyncFilterOutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write
in class UnsyncFilterOutputStream
- Throws:
IOException