public class TBinDecoder extends TBin
CURRENT_VERSION| Constructor and Description |
|---|
TBinDecoder(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
decode() |
<T> T |
decode(Class<T> dataClass) |
Object |
decode(TypeDef type) |
<T> T |
decode(TypeDef type,
Class<T> dataClass) |
boolean |
nextBoolean() |
byte |
nextByte() |
byte[] |
nextByteArray() |
int |
nextCount(TypeDef type) |
double |
nextDouble() |
float |
nextFloat() |
int |
nextInt() |
TypeDef |
nextItemKeyType(TypeDef type,
int idx) |
String |
nextItemName(TypeDef type,
int idx) |
TypeDef |
nextItemType(TypeDef type,
int idx) |
long |
nextLong() |
short |
nextShort() |
String |
nextString() |
Symbol |
nextSymbol() |
Timestamp |
nextTimestamp() |
TypeDef |
nextType()
The primary parser sequencing call.
|
UUID |
nextUUID() |
public TBinDecoder(InputStream in)
public void close()
throws IOException
IOExceptionpublic <T> T decode(Class<T> dataClass) throws IOException
IOExceptionpublic <T> T decode(TypeDef type, Class<T> dataClass) throws IOException
IOExceptionpublic Object decode() throws IOException
IOExceptionpublic Object decode(TypeDef type) throws IOException
IOExceptionpublic TypeDef nextType() throws IOException
IOException - on bad TBin stream or any underlying I/O error.public int nextCount(TypeDef type)
public String nextItemName(TypeDef type, int idx) throws IOException
IOExceptionpublic TypeDef nextItemKeyType(TypeDef type, int idx) throws IOException
IOExceptionpublic TypeDef nextItemType(TypeDef type, int idx) throws IOException
IOExceptionpublic boolean nextBoolean()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public byte nextByte()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public short nextShort()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public int nextInt()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public long nextLong()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public float nextFloat()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public double nextDouble()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public byte[] nextByteArray()
throws IOException
IOException - on bad TBin stream or any underlying I/O error.public String nextString() throws IOException
IOException - on bad TBin stream or any underlying I/O error.public Timestamp nextTimestamp() throws IOException
IOException - on bad TBin stream or any underlying I/O error.public Symbol nextSymbol() throws IOException
IOException - on bad TBin stream or any underlying I/O error.public UUID nextUUID() throws IOException
IOException - on bad TBin stream or any underlying I/O error.Copyright © 2016–2021 Verizon Media. All rights reserved.