| Constructor and Description |
|---|
BinaryEncoder(OutputStream output) |
| Modifier and Type | Method and Description |
|---|---|
Encoder |
writeBool(boolean b) |
Encoder |
writeBytes(byte[] bytes) |
Encoder |
writeBytes(byte[] bytes,
int off,
int len) |
Encoder |
writeBytes(ByteBuffer buffer)
Writes out the remaining bytes in
ByteBuffer. |
Encoder |
writeDouble(double d) |
Encoder |
writeFloat(float f) |
Encoder |
writeInt(int i) |
Encoder |
writeLong(long l) |
Encoder |
writeNull() |
Encoder |
writeString(String s) |
public BinaryEncoder(OutputStream output)
public Encoder writeNull() throws IOException
writeNull in interface EncoderIOExceptionpublic Encoder writeBool(boolean b) throws IOException
writeBool in interface EncoderIOExceptionpublic Encoder writeInt(int i) throws IOException
writeInt in interface EncoderIOExceptionpublic Encoder writeLong(long l) throws IOException
writeLong in interface EncoderIOExceptionpublic Encoder writeFloat(float f) throws IOException
writeFloat in interface EncoderIOExceptionpublic Encoder writeDouble(double d) throws IOException
writeDouble in interface EncoderIOExceptionpublic Encoder writeString(String s) throws IOException
writeString in interface EncoderIOExceptionpublic Encoder writeBytes(byte[] bytes) throws IOException
writeBytes in interface EncoderIOExceptionpublic Encoder writeBytes(byte[] bytes, int off, int len) throws IOException
writeBytes in interface EncoderIOExceptionpublic Encoder writeBytes(ByteBuffer buffer) throws IOException
EncoderByteBuffer.
The given ByteBuffer is untounch after this method is returned (i.e. same position and limit).writeBytes in interface Encoderbuffer - bytes to writeIOExceptionCopyright © 2019 CDAP Licensed under the Apache License, Version 2.0.