Class AMQPInputStream
- java.lang.Object
-
- org.ow2.joram.mom.amqp.marshalling.AMQPInputStream
-
public class AMQPInputStream extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private intbitIf we are reading one or more bits, keeps track of which bit position we are reading fromprivate intbitsIf we are reading one or more bits, holds the current packed collection of bitsprivate InputStreaminprivate static Loggerlogger
-
Constructor Summary
Constructors Constructor Description AMQPInputStream(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidclearBits()private Object[]readArray()booleanreadBit()booleanreadBoolean()private ObjectreadFieldValue()intreadLong()longreadLonglong()LongStringreadLongstr()intreadOctet()intreadShort()StringreadShortstr()MapreadTable()DatereadTimestamp()
-
-
-
Field Detail
-
logger
private static final Logger logger
-
in
private InputStream in
-
bits
private int bits
If we are reading one or more bits, holds the current packed collection of bits
-
bit
private int bit
If we are reading one or more bits, keeps track of which bit position we are reading from
-
-
Constructor Detail
-
AMQPInputStream
public AMQPInputStream(InputStream inputStream)
-
-
Method Detail
-
clearBits
private void clearBits()
-
readShortstr
public final String readShortstr() throws IOException
- Throws:
IOException
-
readLongstr
public final LongString readLongstr() throws IOException
- Throws:
IOException
-
readShort
public final int readShort() throws IOException- Throws:
IOException
-
readLong
public final int readLong() throws IOException- Throws:
IOException
-
readLonglong
public final long readLonglong() throws IOException- Throws:
IOException
-
readBoolean
public final boolean readBoolean() throws IOException- Throws:
IOException
-
readBit
public final boolean readBit() throws IOException- Throws:
IOException
-
readFieldValue
private final Object readFieldValue() throws IOException, SyntaxErrorException
- Throws:
IOExceptionSyntaxErrorException
-
readTable
public final Map readTable() throws IOException, SyntaxErrorException
- Throws:
IOExceptionSyntaxErrorException
-
readArray
private final Object[] readArray() throws IOException, SyntaxErrorException
- Throws:
IOExceptionSyntaxErrorException
-
readOctet
public final int readOctet() throws IOException- Throws:
IOException
-
readTimestamp
public final Date readTimestamp() throws IOException
- Throws:
IOException
-
-