public final class ServerEncoder
extends org.apache.qpid.transport.codec.AbstractEncoder
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CAPACITY |
| Constructor and Description |
|---|
ServerEncoder() |
ServerEncoder(int capacity,
boolean useDirectMemory) |
| 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) |
org.apache.qpid.bytebuffer.QpidByteBuffer |
getBuffer() |
void |
init() |
int |
position() |
protected void |
put(byte[] bytes) |
void |
writeBin128(byte[] byteArray) |
void |
writeBin128(UUID id) |
void |
writeDouble(double aDouble) |
void |
writeFloat(float aFloat) |
void |
writeInt16(short aShort) |
void |
writeInt32(int anInt) |
void |
writeInt64(long aLong) |
void |
writeInt8(byte aByte) |
void |
writeUint16(int s) |
void |
writeUint32(long i) |
void |
writeUint64(long l) |
void |
writeUint8(short b) |
put, put, writeArray, writeArrayEntries, writeByteRanges, writeDatetime, writeList, writeListEntries, writeMap, writeMapEntries, writeSequenceNo, writeSequenceSet, writeStr16, writeStr8, writeStruct, writeStruct32, writeUuid, writeVbin16, writeVbin32, writeVbin8public static final int DEFAULT_CAPACITY
public ServerEncoder()
public ServerEncoder(int capacity,
boolean useDirectMemory)
public void init()
public org.apache.qpid.bytebuffer.QpidByteBuffer getBuffer()
public int position()
protected void doPut(byte b)
doPut in class org.apache.qpid.transport.codec.AbstractEncoderprotected void doPut(ByteBuffer src)
doPut in class org.apache.qpid.transport.codec.AbstractEncoderprotected void put(byte[] bytes)
put in class org.apache.qpid.transport.codec.AbstractEncoderpublic void writeUint8(short b)
writeUint8 in interface org.apache.qpid.transport.codec.EncoderwriteUint8 in class org.apache.qpid.transport.codec.AbstractEncoderpublic void writeUint16(int s)
writeUint16 in interface org.apache.qpid.transport.codec.EncoderwriteUint16 in class org.apache.qpid.transport.codec.AbstractEncoderpublic void writeUint32(long i)
writeUint32 in interface org.apache.qpid.transport.codec.EncoderwriteUint32 in class org.apache.qpid.transport.codec.AbstractEncoderpublic void writeUint64(long l)
writeUint64 in interface org.apache.qpid.transport.codec.EncoderwriteUint64 in class org.apache.qpid.transport.codec.AbstractEncoderpublic int beginSize8()
beginSize8 in class org.apache.qpid.transport.codec.AbstractEncoderpublic void endSize8(int pos)
endSize8 in class org.apache.qpid.transport.codec.AbstractEncoderpublic int beginSize16()
beginSize16 in class org.apache.qpid.transport.codec.AbstractEncoderpublic void endSize16(int pos)
endSize16 in class org.apache.qpid.transport.codec.AbstractEncoderpublic int beginSize32()
beginSize32 in class org.apache.qpid.transport.codec.AbstractEncoderpublic void endSize32(int pos)
endSize32 in class org.apache.qpid.transport.codec.AbstractEncoderpublic void writeDouble(double aDouble)
public void writeInt16(short aShort)
public void writeInt32(int anInt)
public void writeInt64(long aLong)
public void writeInt8(byte aByte)
public void writeBin128(byte[] byteArray)
public void writeBin128(UUID id)
public void writeFloat(float aFloat)
public void close()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.