Class Data
java.lang.Object
com.swiftmq.amqp.v100.types.AMQPType
com.swiftmq.amqp.v100.types.AMQPBinary
com.swiftmq.amqp.v100.generated.messaging.message_format.Data
- All Implemented Interfaces:
SectionIF
A data section contains opaque binary data.
- Version:
- AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
- Author:
- IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SectionVisitor visitor) Accept method for a Section visitor.boolean
Return whether this Data has a descriptortoString()
void
writeContent
(DataOutput out) Write the content of this type to a DataOutput.Methods inherited from class com.swiftmq.amqp.v100.types.AMQPBinary
equals, getPredictedSize, getValue, getValueString, hashCode, readContent, setValue
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPType
getCode, getConstructor, getName, isWriteCode, resetConstructor, setCode, setConstructor, setWriteCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.swiftmq.amqp.v100.generated.messaging.message_format.SectionIF
getPredictedSize, getValueString
-
Field Details
-
DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE -
codeConstructor
-
nameConstructor
-
-
Constructor Details
-
Data
public Data(byte[] initValue) Constructs a Data.- Parameters:
initValue
- initial value
-
-
Method Details
-
accept
Accept method for a Section visitor. -
hasDescriptor
public boolean hasDescriptor()Return whether this Data has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
writeContent
Description copied from class:AMQPType
Write the content of this type to a DataOutput.- Overrides:
writeContent
in classAMQPBinary
- Parameters:
out
- DataOutput- Throws:
IOException
- on error
-
toString
- Overrides:
toString
in classAMQPBinary
-