Package com.rabbitmq.client.impl
Class MethodArgumentReader
java.lang.Object
com.rabbitmq.client.impl.MethodArgumentReader
Parses AMQP wire-protocol
Method
arguments from a
DataInputStream. Methods on this object are usually called from
generated code.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
If we are reading one or more bits, holds the current packed collection of bitsprivate final ValueReader
The stream we are reading from.private int
If we are reading one or more bits, keeps track of which bit position we will read from next. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Resets the bit group accumulator variables when some non-bit argument value is to be read.final boolean
readBit()
Public API - reads a bit/boolean argument.final int
readLong()
Public API - reads an integer argument.final long
Public API - reads a long integer argument.final LongString
Public API - reads a long string argument.final int
Public API - reads an octet argument.final int
Public API - reads a short integer argument.final String
Public API - reads a short string argument.Public API - reads a table argument.final Date
Public API - reads an timestamp argument.
-
Field Details
-
in
The stream we are reading from. -
bits
private int bitsIf we are reading one or more bits, holds the current packed collection of bits -
nextBitMask
private int nextBitMaskIf we are reading one or more bits, keeps track of which bit position we will read from next. (reading least to most significant order)
-
-
Constructor Details
-
MethodArgumentReader
Construct a MethodArgumentReader from the givenValueReader
.
-
-
Method Details
-
clearBits
private void clearBits()Resets the bit group accumulator variables when some non-bit argument value is to be read. -
readShortstr
Public API - reads a short string argument.- Throws:
IOException
-
readLongstr
Public API - reads a long string argument.- Throws:
IOException
-
readShort
Public API - reads a short integer argument.- Throws:
IOException
-
readLong
Public API - reads an integer argument.- Throws:
IOException
-
readLonglong
Public API - reads a long integer argument.- Throws:
IOException
-
readBit
Public API - reads a bit/boolean argument.- Throws:
IOException
-
readTable
Public API - reads a table argument.- Throws:
IOException
-
readOctet
Public API - reads an octet argument.- Throws:
IOException
-
readTimestamp
Public API - reads an timestamp argument.- Throws:
IOException
-