public class TByteArrayOutputStream extends TOutputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected int |
count |
Constructor and Description |
---|
TByteArrayOutputStream() |
TByteArrayOutputStream(int size) |
Modifier and Type | Method and Description |
---|---|
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
String |
toString() |
TString |
toString(TString charsetName) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeTo(TOutputStream out) |
close, flush, write
public TByteArrayOutputStream()
public TByteArrayOutputStream(int size)
public void write(int b)
write
in class TOutputStream
public void write(byte[] b, int off, int len)
write
in class TOutputStream
public byte[] toByteArray()
public TString toString(TString charsetName) throws TUnsupportedEncodingException
TUnsupportedEncodingException
public void writeTo(TOutputStream out) throws IOException
IOException
public void reset()
public int size()
Copyright © 2019. All rights reserved.