public static final class ByteString.Output extends OutputStream
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Resets this stream, so that all currently accumulated output in the output stream is discarded.
|
int |
size()
Returns the current size of the output stream.
|
ByteString |
toByteString()
Creates a byte string.
|
String |
toString()
|
void |
write(byte[] b, int offset, int length)
|
void |
write(int b)
|
void |
writeTo(OutputStream
Writes the complete contents of this byte array output stream to the specified output stream argument.
|
close, flush, writepublic void write(int b)
public void write(byte[] b,
int offset,
int length)public ByteStringtoByteString()
public void writeTo(OutputStreamout) throws IOException
out - the output stream to which to write the data.
IOException - if an I/O error occurs.
public int size()
public void reset()
public StringtoString()