public interface Encoder
| 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 bytes)
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) |
Encoder writeNull() throws IOException
IOExceptionEncoder writeBool(boolean b) throws IOException
IOExceptionEncoder writeInt(int i) throws IOException
IOExceptionEncoder writeLong(long l) throws IOException
IOExceptionEncoder writeFloat(float f) throws IOException
IOExceptionEncoder writeDouble(double d) throws IOException
IOExceptionEncoder writeString(String s) throws IOException
IOExceptionEncoder writeBytes(byte[] bytes) throws IOException
IOExceptionEncoder writeBytes(byte[] bytes, int off, int len) throws IOException
IOExceptionEncoder writeBytes(ByteBuffer bytes) throws IOException
ByteBuffer.
The given ByteBuffer is untounch after this method is returned (i.e. same position and limit).bytes - bytes to writeIOExceptionCopyright © 2019 CDAP Licensed under the Apache License, Version 2.0.