com.liferay.portal.kernel.io.unsync
Class UnsyncByteArrayOutputStream
java.lang.Object
java.io.OutputStream
com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class UnsyncByteArrayOutputStream
- extends OutputStream
See http://issues.liferay.com/browse/LPS-6648.
Field Summary |
protected byte[] |
buffer
|
protected int |
index
|
buffer
protected byte[] buffer
index
protected int index
UnsyncByteArrayOutputStream
public UnsyncByteArrayOutputStream()
UnsyncByteArrayOutputStream
public UnsyncByteArrayOutputStream(int size)
reset
public void reset()
size
public int size()
toByteArray
public byte[] toByteArray()
toString
public String toString()
- Overrides:
toString
in class Object
toString
public String toString(String charsetName)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
unsafeGetByteArray
public byte[] unsafeGetByteArray()
write
public void write(byte[] byteArray)
- Overrides:
write
in class OutputStream
write
public void write(byte[] byteArray,
int offset,
int length)
- Overrides:
write
in class OutputStream
write
public void write(int b)
- Specified by:
write
in class OutputStream
writeTo
public void writeTo(OutputStream outputStream)
throws IOException
- Throws:
IOException