public class TBinEncoder extends TBin
CURRENT_VERSION| Constructor and Description |
|---|
TBinEncoder(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(Object o) |
void |
encodeArray(int count) |
void |
encodeBoolean(boolean b) |
void |
encodeByte(byte n) |
void |
encodeBytes(byte[] b) |
void |
encodeDouble(double n) |
void |
encodeField(String name) |
void |
encodeFloat(float n) |
void |
encodeInteger(int n) |
void |
encodeLong(long n) |
void |
encodeMap(int count) |
void |
encodeNull() |
void |
encodeShort(short n) |
void |
encodeString(String s) |
void |
encodeStruct(int count) |
void |
encodeSymbol(String s) |
void |
encodeTimestamp(Timestamp ts) |
void |
encodeUUID(UUID uuid) |
public TBinEncoder(OutputStream out) throws IOException
IOExceptionpublic void encode(Object o) throws IOException
IOExceptionpublic void encodeNull()
throws IOException
IOExceptionpublic void encodeBoolean(boolean b)
throws IOException
IOExceptionpublic void encodeByte(byte n)
throws IOException
IOExceptionpublic void encodeShort(short n)
throws IOException
IOExceptionpublic void encodeInteger(int n)
throws IOException
IOExceptionpublic void encodeLong(long n)
throws IOException
IOExceptionpublic void encodeFloat(float n)
throws IOException
IOExceptionpublic void encodeDouble(double n)
throws IOException
IOExceptionpublic void encodeBytes(byte[] b)
throws IOException
IOExceptionpublic void encodeString(String s) throws IOException
IOExceptionpublic void encodeTimestamp(Timestamp ts) throws IOException
IOExceptionpublic void encodeSymbol(String s) throws IOException
IOExceptionpublic void encodeUUID(UUID uuid) throws IOException
IOExceptionpublic void encodeArray(int count)
throws IOException
IOExceptionpublic void encodeMap(int count)
throws IOException
IOExceptionpublic void encodeStruct(int count)
throws IOException
IOExceptionpublic void encodeField(String name) throws IOException
IOExceptionCopyright © 2016–2021 Verizon Media. All rights reserved.