Class CoreBytesMessageWrapper
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMessageWrapper
-
- org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreBytesMessageWrapper
-
public class CoreBytesMessageWrapper extends CoreMessageWrapper
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMessageWrapper
message
-
-
Constructor Summary
Constructors Constructor Description CoreBytesMessageWrapper(org.apache.activemq.artemis.api.core.ICoreMessage message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.qpid.proton.amqp.messaging.SectioncreateAMQPSection(java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> maMap, org.apache.qpid.proton.amqp.messaging.Properties properties)voiddecode()voidencode()Encode the body into the internal messageprotected static org.apache.qpid.proton.amqp.BinarygetBinaryFromMessageBody(CoreBytesMessageWrapper message)longgetBodyLength()booleanreadBoolean()bytereadByte()intreadBytes(byte[] value)intreadBytes(byte[] value, int length)charreadChar()doublereadDouble()floatreadFloat()intreadInt()longreadLong()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()java.lang.StringreadUTF()voidreset()voidwriteBoolean(boolean value)voidwriteByte(byte value)voidwriteBytes(byte[] value)voidwriteBytes(byte[] value, int offset, int length)voidwriteChar(char value)voidwriteDouble(double value)voidwriteFloat(float value)voidwriteInt(int value)voidwriteLong(long value)voidwriteObject(java.lang.Object value)voidwriteShort(short value)voidwriteUTF(java.lang.String value)-
Methods inherited from class org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMessageWrapper
clearBody, clearProperties, getBooleanProperty, getByteProperty, getDestination, getDoubleProperty, getExpiration, getFloatProperty, getInnerMessage, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSMessageID, getJMSPriority, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getOrignalEncoding, getPropertyNames, getReadBodyBuffer, getShortProperty, getStringProperty, getWriteBodyBuffer, propertyExists, setBooleanProperty, setByteProperty, setDeliveryMode, setDestination, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, wrap
-
-
-
-
Method Detail
-
getBinaryFromMessageBody
protected static org.apache.qpid.proton.amqp.Binary getBinaryFromMessageBody(CoreBytesMessageWrapper message)
-
createAMQPSection
public org.apache.qpid.proton.amqp.messaging.Section createAMQPSection(java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> maMap, org.apache.qpid.proton.amqp.messaging.Properties properties)- Overrides:
createAMQPSectionin classCoreMessageWrapper
-
getBodyLength
public long getBodyLength()
-
readBoolean
public boolean readBoolean()
-
readByte
public byte readByte()
-
readUnsignedByte
public int readUnsignedByte()
-
readShort
public short readShort()
-
readUnsignedShort
public int readUnsignedShort()
-
readChar
public char readChar()
-
readInt
public int readInt()
-
readLong
public long readLong()
-
readFloat
public float readFloat()
-
readDouble
public double readDouble()
-
readUTF
public java.lang.String readUTF()
-
readBytes
public int readBytes(byte[] value)
-
readBytes
public int readBytes(byte[] value, int length)
-
writeBoolean
public void writeBoolean(boolean value)
-
writeByte
public void writeByte(byte value)
-
writeShort
public void writeShort(short value)
-
writeChar
public void writeChar(char value)
-
writeInt
public void writeInt(int value)
-
writeLong
public void writeLong(long value)
-
writeFloat
public void writeFloat(float value)
-
writeDouble
public void writeDouble(double value)
-
writeUTF
public void writeUTF(java.lang.String value)
-
writeBytes
public void writeBytes(byte[] value)
-
writeBytes
public void writeBytes(byte[] value, int offset, int length)
-
writeObject
public void writeObject(java.lang.Object value) throws ConversionException- Throws:
ConversionException
-
encode
public void encode()
Description copied from class:CoreMessageWrapperEncode the body into the internal message- Overrides:
encodein classCoreMessageWrapper
-
decode
public void decode()
- Overrides:
decodein classCoreMessageWrapper
-
reset
public void reset()
-
-