Class MethodArgumentReader
java.lang.Object
com.rabbitmq.client.impl.MethodArgumentReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intIf we are reading one or more bits, holds the current packed collection of bitsprivate final ValueReaderThe stream we are reading from.private intIf 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 voidResets the bit group accumulator variables when some non-bit argument value is to be read.final booleanreadBit()Public API - reads a bit/boolean argument.final intreadLong()Public API - reads an integer argument.final longPublic API - reads a long integer argument.final LongStringPublic API - reads a long string argument.final intPublic API - reads an octet argument.final intPublic API - reads a short integer argument.final StringPublic API - reads a short string argument.Public API - reads a table argument.final DatePublic 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
-