org.apache.qpid.proton.amqp
Class Binary

java.lang.Object
  extended by org.apache.qpid.proton.amqp.Binary

public final class Binary
extends java.lang.Object


Constructor Summary
Binary(byte[] data)
           
Binary(byte[] data, int offset, int length)
           
 
Method Summary
 java.nio.ByteBuffer asByteBuffer()
           
static Binary combine(java.util.Collection<Binary> binaries)
           
static Binary create(java.nio.ByteBuffer buffer)
           
 boolean equals(java.lang.Object o)
           
 byte[] getArray()
           
 int getArrayOffset()
           
 int getLength()
           
 int hashCode()
           
 Binary subBinary(int offset, int length)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Binary

public Binary(byte[] data)

Binary

public Binary(byte[] data,
              int offset,
              int length)
Method Detail

asByteBuffer

public java.nio.ByteBuffer asByteBuffer()

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getArrayOffset

public int getArrayOffset()

getArray

public byte[] getArray()

getLength

public int getLength()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

combine

public static Binary combine(java.util.Collection<Binary> binaries)

subBinary

public Binary subBinary(int offset,
                        int length)

create

public static Binary create(java.nio.ByteBuffer buffer)