public final class NCData extends NCType
TYPE_BOOLEAN, TYPE_BYTEBUFFER, TYPE_DATE, TYPE_DOUBLE, TYPE_INTEGER, TYPE_LIST, TYPE_LONG, TYPE_MAP, TYPE_NULL, TYPE_STRING
Constructor and Description |
---|
NCData(byte[] value)
Create a
NCData instance. |
NCData(byte[] value,
int offset,
int length)
Create a
NCData instance. |
NCData(java.nio.ByteBuffer value)
Constructs a
NCData object holding the specified bytes. |
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArray()
Returns the value of this object as byte[]
|
java.nio.ByteBuffer |
bytes()
Returns the ByteBuffer value of this object
|
int |
count()
Returns the number of bytes
|
boolean |
equals(java.lang.Object other)
Force subclasses to implement.
|
int |
getType()
Returns the type of this
NCType object. |
int |
hashCode()
Force subclasses to implement.
|
java.lang.String |
toString()
Force subclasses to implement.
|
externalize
public NCData(byte[] value)
NCData
instance.value
- ByteBuffer value of the created instancepublic NCData(byte[] value, int offset, int length)
NCData
instance.value
- ByteBuffer value of the created instanceoffset
- offset of the subarray to be usedlength
- length of the subarray to be usedpublic NCData(java.nio.ByteBuffer value)
NCData
object holding the specified bytes. The
NCData instance creates a copy of the specified ByteBuffer object.value
- bytes represented by the created objectpublic int count()
public java.nio.ByteBuffer bytes()
public byte[] byteArray()
public int getType()
NCType
NCType
object.public int hashCode()
NCType
public boolean equals(java.lang.Object other)
NCType
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"