Class NCData

java.lang.Object
com.adobe.versioncue.nativecomm.msg.NCType
com.adobe.versioncue.nativecomm.msg.NCData
All Implemented Interfaces:
INCExternalizable

public final class NCData extends NCType
  • Constructor Details

    • NCData

      public NCData(byte[] value)
      Create a NCData instance.
      Parameters:
      value - ByteBuffer value of the created instance
    • NCData

      public NCData(byte[] value, int offset, int length)
      Create a NCData instance.
      Parameters:
      value - ByteBuffer value of the created instance
      offset - offset of the subarray to be used
      length - length of the subarray to be used
    • NCData

      public NCData(ByteBuffer value)
      Constructs a NCData object holding the specified bytes. The NCData instance creates a copy of the specified ByteBuffer object.
      Parameters:
      value - bytes represented by the created object
  • Method Details

    • count

      public int count()
      Returns the number of bytes
      Returns:
      number of bytes
    • bytes

      public ByteBuffer bytes()
      Returns the ByteBuffer value of this object
      Returns:
      ByteBuffer value of this object
    • byteArray

      public byte[] byteArray()
      Returns the value of this object as byte[]
      Returns:
      byte[] value of this object
    • getType

      public int getType()
      Description copied from class: NCType
      Returns the type of this NCType object.
      Specified by:
      getType in class NCType
      Returns:
      the type of this NCType
    • hashCode

      public int hashCode()
      Description copied from class: NCType
      Force subclasses to implement.
      Specified by:
      hashCode in class NCType
      See Also:
    • equals

      public boolean equals(Object other)
      Description copied from class: NCType
      Force subclasses to implement.
      Specified by:
      equals in class NCType
      See Also:
    • toString

      public String toString()
      Description copied from class: NCType
      Force subclasses to implement.
      Specified by:
      toString in class NCType
      See Also: