public static final class Binary.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.
|
Binary |
toBinary()
Creates a byte string.
|
String |
toString() |
void |
write(byte[] b,
int offset,
int length) |
void |
write(int b) |
void |
writeTo(OutputStream out)
Writes the complete contents of this byte array output stream to the specified output stream argument.
|
close, flush, writepublic void reset()
public int size()
public Binary toBinary()
public void write(byte[] b,
int offset,
int length)
write in class OutputStreampublic void write(int b)
write in class OutputStreampublic void writeTo(OutputStream out) throws IOException
out - the output stream to which to write the data.IOException - if an I/O error occurs.Copyright © 2012–2015 Danish Maritime Authority. All rights reserved.