public final class NoOpBinaryOutput extends Object implements BinaryOutput
| Modifier and Type | Field and Description |
|---|---|
static BinaryOutput |
INSTANCE |
| Constructor and Description |
|---|
NoOpBinaryOutput() |
public static final BinaryOutput INSTANCE
public void write(int value)
throws IOException
BinaryOutputwrite in interface BinaryOutputvalue - the byte to write (lower 8 bits)IOException - if I/O error occurredpublic 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)Copyright © 2016. All rights reserved.