Package com.rabbitmq.client.impl
Class ValueReader
- java.lang.Object
-
- com.rabbitmq.client.impl.ValueReader
-
public class ValueReader extends Object
Helper class to read AMQP wire-protocol encoded values.
-
-
Constructor Summary
Constructors Constructor Description ValueReader(DataInputStream in)Construct a MethodArgumentReader streaming over the given DataInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intreadLong()Public API - reads an integer.longreadLonglong()Public API - reads a long integer.LongStringreadLongstr()Public API - reads a long string.intreadOctet()Public API - reads an octet.intreadShort()Public API - reads a short integer.StringreadShortstr()Public API - reads a short string.Map<String,Object>readTable()Public API - reads a table.DatereadTimestamp()Public API - reads an timestamp.
-
-
-
Constructor Detail
-
ValueReader
public ValueReader(DataInputStream in)
Construct a MethodArgumentReader streaming over the given DataInputStream.
-
-
Method Detail
-
readShortstr
public final String readShortstr() throws IOException
Public API - reads a short string.- Throws:
IOException
-
readLongstr
public final LongString readLongstr() throws IOException
Public API - reads a long string.- Throws:
IOException
-
readShort
public final int readShort() throws IOExceptionPublic API - reads a short integer.- Throws:
IOException
-
readLong
public final int readLong() throws IOExceptionPublic API - reads an integer.- Throws:
IOException
-
readLonglong
public final long readLonglong() throws IOExceptionPublic API - reads a long integer.- Throws:
IOException
-
readTable
public final Map<String,Object> readTable() throws IOException
Public API - reads a table.- Throws:
IOException
-
readOctet
public final int readOctet() throws IOExceptionPublic API - reads an octet.- Throws:
IOException
-
readTimestamp
public final Date readTimestamp() throws IOException
Public API - reads an timestamp.- Throws:
IOException
-
-