public final class BinaryEncoder extends Object
| Constructor and Description |
|---|
BinaryEncoder(OutputStream output) |
| Modifier and Type | Method and Description |
|---|---|
BinaryEncoder |
writeBytes(byte[] bytes)
write a sequence of bytes.
|
BinaryEncoder |
writeInt(int i)
write a single int value.
|
BinaryEncoder |
writeLong(long l)
write a single long int value.
|
public BinaryEncoder(OutputStream output)
output - stream to write topublic BinaryEncoder writeInt(int i) throws IOException
IOException - If there is IO error.public BinaryEncoder writeLong(long l) throws IOException
IOException - If there is IO error.public BinaryEncoder writeBytes(byte[] bytes) throws IOException
IOException - If there is IO error.Copyright © 2016 The Apache Software Foundation. All rights reserved.