|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rabbitmq.client.impl.ValueReader
public class ValueReader
Helper class to reade AMQP wire-protocol encoded values.
Constructor Summary | |
---|---|
ValueReader(java.io.DataInputStream in)
Construct a MethodArgumentReader streaming over the given DataInputStream. |
Method Summary | |
---|---|
static java.util.List |
readArray(java.io.DataInputStream in)
Read a field-array |
byte[] |
readBytes()
Public API - convenience method - reads a 32-bit-length-prefix byte vector |
static byte[] |
readBytes(java.io.DataInputStream in)
Public API - convenience method - reads a 32-bit-length-prefix byte vector from a DataInputStream. |
static java.lang.Object |
readFieldValue(java.io.DataInputStream in)
|
int |
readLong()
Public API - reads an integer. |
long |
readLonglong()
Public API - reads a long integer. |
LongString |
readLongstr()
Public API - reads a long string. |
static LongString |
readLongstr(java.io.DataInputStream in)
Public API - convenience method - reads a long string argument from a DataInputStream. |
int |
readOctet()
Public API - reads an octet. |
int |
readShort()
Public API - reads a short integer. |
java.lang.String |
readShortstr()
Public API - reads a short string. |
static java.lang.String |
readShortstr(java.io.DataInputStream in)
Public API - convenience method - reads a short string from a DataInput Stream. |
java.util.Map<java.lang.String,java.lang.Object> |
readTable()
Public API - reads a table. |
static java.util.Map<java.lang.String,java.lang.Object> |
readTable(java.io.DataInputStream in)
Public API - reads a table argument from a given stream. |
java.util.Date |
readTimestamp()
Public API - reads an timestamp. |
static java.util.Date |
readTimestamp(java.io.DataInputStream in)
Public API - convenience method - reads a timestamp argument from the DataInputStream. |
protected static long |
unsignedExtend(int value)
Protected API - Cast an int to a long without extending the sign bit of the int out into the high half of the long. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueReader(java.io.DataInputStream in)
Method Detail |
---|
protected static long unsignedExtend(int value)
public static final java.lang.String readShortstr(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public final java.lang.String readShortstr() throws java.io.IOException
java.io.IOException
public static final byte[] readBytes(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public byte[] readBytes() throws java.io.IOException
java.io.IOException
public static final LongString readLongstr(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public final LongString readLongstr() throws java.io.IOException
java.io.IOException
public final int readShort() throws java.io.IOException
java.io.IOException
public final int readLong() throws java.io.IOException
java.io.IOException
public final long readLonglong() throws java.io.IOException
java.io.IOException
public static final java.util.Map<java.lang.String,java.lang.Object> readTable(java.io.DataInputStream in) throws java.io.IOException
ContentHeaderPropertyReader
.
java.io.IOException
public static final java.lang.Object readFieldValue(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public static java.util.List readArray(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public final java.util.Map<java.lang.String,java.lang.Object> readTable() throws java.io.IOException
java.io.IOException
public final int readOctet() throws java.io.IOException
java.io.IOException
public static final java.util.Date readTimestamp(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public final java.util.Date readTimestamp() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |