Constructor and Description |
---|
AbstractDecoder() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte |
doGet() |
protected abstract void |
doGet(byte[] bytes) |
protected byte |
get() |
protected void |
get(byte[] bytes) |
protected Binary |
get(int size) |
List<Object> |
readArray()
An array is an ordered sequence of values of the same type.
|
RangeSet |
readByteRanges() |
String |
readContent() |
long |
readDatetime()
The datetime type encodes a date and time using the 64 bit POSIX time_t format.
|
List<Object> |
readList()
A list is an ordered sequence of (type, value) pairs.
|
Map<String,Object> |
readMap()
A map is a set of distinct keys where each key has an associated (type,value) pair.
|
int |
readSequenceNo()
// *The sequence-no type encodes, in network byte order, a serial number as defined in RFC-1982.
|
RangeSet |
readSequenceSet() |
String |
readStr16()
The str16 type encodes up to 65535 octets worth of UTF-8 unicode.
|
String |
readStr8()
The str8 type encodes up to 255 octets worth of UTF-8 unicode.
|
Struct |
readStruct(int type) |
Struct |
readStruct32()
The struct32 type describes any coded struct with a 32-bit (4 octet) size.
|
int |
readUint16()
The uint16 type is a 16-bit unsigned integral value encoded in network byte order.
|
long |
readUint32()
The uint32 type is a 32-bit unsigned integral value encoded in network byte order.
|
long |
readUint64()
The uint64 type is a 64-bit unsigned integral value encoded in network byte order.
|
short |
readUint8()
The uint8 type is an 8-bit unsigned integral value.
|
UUID |
readUuid()
The uuid type encodes a universally unique id as defined by RFC-4122.
|
byte[] |
readVbin16()
The vbin16 type encodes up to 65535 octets of opaque binary data.
|
byte[] |
readVbin32()
The vbin32 type encodes up to 4294967295 octets of opaque binary data.
|
byte[] |
readVbin8()
The vbin8 type encodes up to 255 octets of opaque binary data.
|
protected short |
uget() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasRemaining, readBin128, readBytes, readDouble, readFloat, readInt16, readInt32, readInt64, readInt8, readRemainingBytes
protected abstract byte doGet()
protected abstract void doGet(byte[] bytes)
protected byte get()
protected void get(byte[] bytes)
protected Binary get(int size)
protected short uget()
public short readUint8()
Decoder
public int readUint16()
Decoder
readUint16
in interface Decoder
public long readUint32()
Decoder
readUint32
in interface Decoder
public int readSequenceNo()
Decoder
readSequenceNo
in interface Decoder
public long readUint64()
Decoder
readUint64
in interface Decoder
public long readDatetime()
Decoder
readDatetime
in interface Decoder
public String readStr8()
Decoder
public String readStr16()
Decoder
public byte[] readVbin8()
Decoder
public byte[] readVbin16()
Decoder
readVbin16
in interface Decoder
public byte[] readVbin32()
Decoder
readVbin32
in interface Decoder
public RangeSet readSequenceSet()
readSequenceSet
in interface Decoder
public RangeSet readByteRanges()
readByteRanges
in interface Decoder
public UUID readUuid()
Decoder
public String readContent()
public Struct readStruct(int type)
readStruct
in interface Decoder
type
- the type of the struct.public Struct readStruct32()
Decoder
readStruct32
in interface Decoder
public Map<String,Object> readMap()
Decoder
public List<Object> readList()
Decoder
public List<Object> readArray()
Decoder
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.