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
-
-
Field Summary
-
Fields inherited from class com.adobe.versioncue.nativecomm.msg.NCType
TYPE_BOOLEAN, TYPE_BYTEBUFFER, TYPE_DATE, TYPE_DOUBLE, TYPE_INTEGER, TYPE_LIST, TYPE_LONG, TYPE_MAP, TYPE_NULL, TYPE_STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
byteArray()
Returns the value of this object as byte[]java.nio.ByteBuffer
bytes()
Returns the ByteBuffer value of this objectint
count()
Returns the number of bytesboolean
equals(java.lang.Object other)
Force subclasses to implement.int
getType()
Returns the type of thisNCType
object.int
hashCode()
Force subclasses to implement.java.lang.String
toString()
Force subclasses to implement.-
Methods inherited from class com.adobe.versioncue.nativecomm.msg.NCType
externalize
-
-
-
-
Constructor Detail
-
NCData
public NCData(byte[] value)
Create aNCData
instance.- Parameters:
value
- ByteBuffer value of the created instance
-
NCData
public NCData(byte[] value, int offset, int length)
Create aNCData
instance.- Parameters:
value
- ByteBuffer value of the created instanceoffset
- offset of the subarray to be usedlength
- length of the subarray to be used
-
NCData
public NCData(java.nio.ByteBuffer value)
Constructs aNCData
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 Detail
-
count
public int count()
Returns the number of bytes- Returns:
- number of bytes
-
bytes
public java.nio.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 thisNCType
object.
-
hashCode
public int hashCode()
Description copied from class:NCType
Force subclasses to implement.
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:NCType
Force subclasses to implement.
-
-