public final class OutputStreamBinaryOutput extends Object implements BinaryOutput
| Constructor and Description |
|---|
OutputStreamBinaryOutput(OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
os() |
void |
write(byte[] data,
int offset,
int length)
Writes specified number of bytes to the output
|
void |
write(int value)
Puts one byte in output stream
|
public OutputStreamBinaryOutput(OutputStream os)
public OutputStream os()
public void write(byte[] data,
int offset,
int length)
throws IOException
BinaryOutputwrite in interface BinaryOutputdata - the array to read bytes fromoffset - the offset in supplied array to start reading fromlength - the number of bytes to read (exactly)IOException - if I/O error occurred (for example - if number of actually written bytes is not equal to length)public void write(int value)
throws IOException
write in interface BinaryOutputvalue - the byte value to storeIOException - if I/O error occurredCopyright © 2016. All rights reserved.