Liferay 6.0.5

com.liferay.portal.kernel.io.unsync
Class UnsyncBufferedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.liferay.portal.kernel.io.unsync.UnsyncFilterOutputStream
          extended by 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
           
 
Fields inherited from class com.liferay.portal.kernel.io.unsync.UnsyncFilterOutputStream
outputStream
 
Constructor Summary
UnsyncBufferedOutputStream(OutputStream outputStream)
           
UnsyncBufferedOutputStream(OutputStream outputStream, int size)
           
 
Method Summary
 void flush()
           
 void write(byte[] byteArray)
           
 void write(byte[] byteArray, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class com.liferay.portal.kernel.io.unsync.UnsyncFilterOutputStream
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected byte[] buffer

count

protected int count
Constructor Detail

UnsyncBufferedOutputStream

public UnsyncBufferedOutputStream(OutputStream outputStream)

UnsyncBufferedOutputStream

public UnsyncBufferedOutputStream(OutputStream outputStream,
                                  int size)
Method Detail

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

Liferay 6.0.5