Class NCData
java.lang.Object
com.adobe.versioncue.nativecomm.msg.NCType
com.adobe.versioncue.nativecomm.msg.NCData
- All Implemented Interfaces:
INCExternalizable
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionNCData(byte[] value) Create aNCDatainstance.NCData(byte[] value, int offset, int length) Create aNCDatainstance.NCData(ByteBuffer value) Constructs aNCDataobject holding the specified bytes. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of this object as byte[]bytes()Returns the ByteBuffer value of this objectintcount()Returns the number of bytesbooleanForce subclasses to implement.intgetType()Returns the type of thisNCTypeobject.inthashCode()Force subclasses to implement.toString()Force subclasses to implement.Methods inherited from class com.adobe.versioncue.nativecomm.msg.NCType
externalize
-
Constructor Details
-
NCData
public NCData(byte[] value) Create aNCDatainstance.- Parameters:
value- ByteBuffer value of the created instance
-
NCData
public NCData(byte[] value, int offset, int length) Create aNCDatainstance.- Parameters:
value- ByteBuffer value of the created instanceoffset- offset of the subarray to be usedlength- length of the subarray to be used
-
NCData
Constructs aNCDataobject 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
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:NCTypeReturns the type of thisNCTypeobject. -
hashCode
public int hashCode()Description copied from class:NCTypeForce subclasses to implement. -
equals
Description copied from class:NCTypeForce subclasses to implement. -
toString
Description copied from class:NCTypeForce subclasses to implement.
-