Class Data
- java.lang.Object
-
- org.apache.qpid.protonj2.types.messaging.Data
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.qpid.protonj2.types.messaging.Section
Section.SectionType
-
-
Field Summary
Fields Modifier and Type Field Description static UnsignedLong
DESCRIPTOR_CODE
static Symbol
DESCRIPTOR_SYMBOL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Data
copy()
boolean
equals(java.lang.Object obj)
Binary
getBinary()
Section.SectionType
getType()
byte[]
getValue()
Returns the backing array for this DataSection
copying the contents into a new array instance if the backing array in the contained Binary is a subsequence of a larger referenced array instance.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
DESCRIPTOR_CODE
public static final UnsignedLong DESCRIPTOR_CODE
-
DESCRIPTOR_SYMBOL
public static final Symbol DESCRIPTOR_SYMBOL
-
-
Constructor Detail
-
Data
public Data(Binary value)
-
Data
public Data(ProtonBuffer value)
-
Data
public Data(byte[] value)
-
Data
public Data(byte[] value, int offset, int length)
-
-
Method Detail
-
copy
public Data copy()
-
getBinary
public Binary getBinary()
-
getValue
public byte[] getValue()
Returns the backing array for this DataSection
copying the contents into a new array instance if the backing array in the contained Binary is a subsequence of a larger referenced array instance.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public Section.SectionType getType()
- Specified by:
getType
in interfaceSection<byte[]>
- Returns:
- the
Section.SectionType
that describes this instance.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-