public class ReverseByteArrayOutputStream extends ByteArrayOutputStream
toByteArray()
and
toString()
.
Closing a ByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.
buf, count
Constructor and Description |
---|
ReverseByteArrayOutputStream() |
Modifier and Type | Method and Description |
---|---|
protected void |
resizeBuffer(int newcount) |
byte[] |
toByteArray() |
String |
toString() |
String |
toString(String enc) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeTo(OutputStream out) |
close, reset, size, toString
flush, write
public void writeTo(OutputStream out) throws IOException
writeTo
in class ByteArrayOutputStream
IOException
public byte[] toByteArray()
toByteArray
in class ByteArrayOutputStream
public String toString()
toString
in class ByteArrayOutputStream
public String toString(String enc) throws UnsupportedEncodingException
toString
in class ByteArrayOutputStream
UnsupportedEncodingException
public void write(int b)
write
in class ByteArrayOutputStream
protected void resizeBuffer(int newcount)
public void write(byte[] b, int off, int len)
write
in class ByteArrayOutputStream
Copyright © 2015 universAAL Consortium. All Rights Reserved.