|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.transport.codec.AbstractEncoder
org.apache.qpid.transport.codec.BBEncoder
public final class BBEncoder
Byte Buffer Encoder. Encoder concrete implementor using a backing byte buffer for encoding data.
Constructor Summary | |
---|---|
BBEncoder(int capacity)
|
Method Summary | |
---|---|
int |
beginSize16()
|
int |
beginSize32()
|
int |
beginSize8()
|
ByteBuffer |
buffer()
|
protected void |
doPut(byte b)
|
protected void |
doPut(ByteBuffer src)
|
void |
endSize16(int pos)
|
void |
endSize32(int pos)
|
void |
endSize8(int pos)
|
void |
init()
|
protected void |
put(byte[] bytes)
|
ByteBuffer |
segment()
|
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 |
writeMagicNumber()
Encodes the AMQP magic number. |
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. |
Methods inherited from class org.apache.qpid.transport.codec.AbstractEncoder |
---|
put, put, resolve, writeArray, writeArrayEntries, writeByteRanges, writeDatetime, writeList, writeListEntries, writeMap, writeMapEntries, writeSequenceNo, writeSequenceSet, writeStr16, writeStr8, writeStruct, writeStruct32, writeUuid, writeVbin16, writeVbin32, writeVbin8 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BBEncoder(int capacity)
Method Detail |
---|
public void init()
public ByteBuffer segment()
public ByteBuffer buffer()
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
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 writeMagicNumber()
Encoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |