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:
- java.io.Closeable, java.io.Flushable
public class UnsyncBufferedOutputStream
- extends UnsyncFilterOutputStream
View Source
See http://issues.liferay.com/browse/LPS-6648.
- Author:
- Shuyang Zhou
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(java.io.OutputStream outputStream)
UnsyncBufferedOutputStream
public UnsyncBufferedOutputStream(java.io.OutputStream outputStream,
int size)
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class UnsyncFilterOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] byteArray,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class UnsyncFilterOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] byteArray)
throws java.io.IOException
- Overrides:
write
in class UnsyncFilterOutputStream
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class UnsyncFilterOutputStream
- Throws:
java.io.IOException