public final class ServerEncoder extends AbstractEncoder
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CAPACITY |
Constructor and Description |
---|
ServerEncoder() |
ServerEncoder(int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
beginSize16() |
int |
beginSize32() |
int |
beginSize8() |
void |
close() |
protected void |
doPut(byte b) |
protected void |
doPut(ByteBuffer src) |
void |
endSize16(int pos) |
void |
endSize32(int pos) |
void |
endSize8(int pos) |
QpidByteBuffer |
getBuffer() |
void |
init() |
int |
position() |
protected void |
put(byte[] bytes) |
void |
writeBin128(byte[] byteArray)
The bin128 type consists of 16 consecutive octets of opaque binary data.
|
void |
writeBin128(UUID id) |
void |
writeDouble(double aDouble)
The double type encodes a double precision 64-bit floating point number.
|
void |
writeFloat(float aFloat)
The float type encodes a single precision 32-bit floating point number.
|
void |
writeInt16(short aShort)
The int16 type is a signed integral value encoded using a 16-bit two's complement representation in network byte order.
|
void |
writeInt32(int anInt)
The int32 type is a signed integral value encoded using a 32-bit two's complement representation in network byte order.
|
void |
writeInt64(long aLong)
The int64 type is a signed integral value encoded using a 64-bit two's complement representation in network byte order.
|
void |
writeInt8(byte aByte)
The int8 type is a signed integral value encoded using an 8-bit two's complement representation.
|
void |
writeUint16(int s)
The uint16 type is a 16-bit unsigned integral value encoded in network byte order.
|
void |
writeUint32(long i)
The uint32 type is a 32-bit unsigned integral value encoded in network byte order.
|
void |
writeUint64(long l)
The uint64 type is a 64-bit unsigned integral value encoded in network byte order.
|
void |
writeUint8(short b)
The uint8 type is an 8-bit unsigned integral value.
|
put, put, writeArray, writeArrayEntries, writeByteRanges, writeDatetime, writeList, writeListEntries, writeMap, writeMapEntries, writeSequenceNo, writeSequenceSet, writeStr16, writeStr8, writeStruct, writeStruct32, writeUuid, writeVbin16, writeVbin32, writeVbin8
public static final int DEFAULT_CAPACITY
public ServerEncoder()
public ServerEncoder(int capacity)
public void init()
public QpidByteBuffer getBuffer()
public int position()
protected void doPut(byte b)
doPut
in class AbstractEncoder
protected void doPut(ByteBuffer src)
doPut
in class AbstractEncoder
protected void put(byte[] bytes)
put
in class AbstractEncoder
public void writeUint8(short b)
Encoder
writeUint8
in interface Encoder
writeUint8
in class AbstractEncoder
b
- the unsigned integer to be encoded.public void writeUint16(int s)
Encoder
writeUint16
in interface Encoder
writeUint16
in class AbstractEncoder
s
- the unsigned integer to be encoded.public void writeUint32(long i)
Encoder
writeUint32
in interface Encoder
writeUint32
in class AbstractEncoder
i
- the unsigned integer to be encoded.public void writeUint64(long l)
Encoder
writeUint64
in interface Encoder
writeUint64
in class AbstractEncoder
l
- the unsigned integer to be encoded.public int beginSize8()
beginSize8
in class AbstractEncoder
public void endSize8(int pos)
endSize8
in class AbstractEncoder
public int beginSize16()
beginSize16
in class AbstractEncoder
public void endSize16(int pos)
endSize16
in class AbstractEncoder
public int beginSize32()
beginSize32
in class AbstractEncoder
public void endSize32(int pos)
endSize32
in class AbstractEncoder
public void writeDouble(double aDouble)
Encoder
aDouble
- the double to be encoded.public void writeInt16(short aShort)
Encoder
aShort
- the integer to be encoded.public void writeInt32(int anInt)
Encoder
anInt
- the integer to be encoded.public void writeInt64(long aLong)
Encoder
aLong
- the integer to be encoded.public void writeInt8(byte aByte)
Encoder
aByte
- the integer to be encoded.public void writeBin128(byte[] byteArray)
Encoder
byteArray
- the bytes array to be encoded.public void writeBin128(UUID id)
public void writeFloat(float aFloat)
Encoder
aFloat
- the float to be encoded.public void close()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.