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
-
-
Constructor Summary
Constructors Constructor Description NCData(byte[] value)
Create aNCData
instance.NCData(byte[] value, int offset, int length)
Create aNCData
instance.NCData(ByteBuffer value)
Constructs aNCData
object holding the specified bytes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
byteArray()
Returns the value of this object as byte[]ByteBuffer
bytes()
Returns the ByteBuffer value of this objectint
count()
Returns the number of bytesboolean
equals(Object other)
Force subclasses to implement.int
getType()
Returns the type of thisNCType
object.int
hashCode()
Force subclasses to implement.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(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 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.- Specified by:
hashCode
in classNCType
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
Description copied from class:NCType
Force subclasses to implement.- Specified by:
equals
in classNCType
- See Also:
Object.equals(java.lang.Object)
-
toString
public String toString()
Description copied from class:NCType
Force subclasses to implement.- Specified by:
toString
in classNCType
- See Also:
Object.toString()
-
-