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.ByteBufferbytes()Returns the ByteBuffer value of this objectintcount()Returns the number of bytesbooleanequals(java.lang.Object other)Force subclasses to implement.intgetType()Returns the type of thisNCTypeobject.inthashCode()Force subclasses to implement.java.lang.StringtoString()Force subclasses to implement.-
Methods inherited from class com.adobe.versioncue.nativecomm.msg.NCType
externalize
-
-
-
-
Constructor Detail
-
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
public NCData(java.nio.ByteBuffer value)
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 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:NCTypeReturns the type of thisNCTypeobject.
-
hashCode
public int hashCode()
Description copied from class:NCTypeForce subclasses to implement.
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:NCTypeForce subclasses to implement.
-
-