| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public NSData | clone()
Implements abstract com. Creates and returns a deep copy of this instance. |
| public int | compareTo(NSObject o)
Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | Returns: The data as a Base64 encodedString.Gets the Base64 encoded data contained in this instance. |
| public void | getBytes(ByteBuffer
The byte buffer which will contain the data. buf, int The number of bytes to copy. length)Copies data from this instance into the specified buffer. |
| public void | getBytes(ByteBuffer
The byte buffer which will contain the data. buf, int The index from which to start copying. rangeStart, int The index at which to stop copying. rangeStop)Copies data from this instance into the specified buffer. |
| public int | |
| public int | Returns: The number of bytes contained in this object.Returns the number of bytes stored in this instance. |
| protected void | toASCII(StringBuilder ascii, int level)
Implements abstract com. Generates the ASCII representation of this object. |
| protected void | toASCIIGnuStep(StringBuilder ascii, int level)
Implements abstract com. Generates the ASCII representation of this object in the GnuStep format. |
| pack-priv void | toBinary(BinaryPropertyListWriter out)
Implements abstract com. Generates the binary representation of the object. |
| public Object | toJavaObject()
Implements abstract com. Converts this NSObject into an equivalent object of the Java Runtime Environment. |
| pack-priv void | toXML(StringBuilder xml, int level)
Implements abstract com. Generates the XML representation of the object (without XML headers or enclosing plist-tags). |
| bytes | back to summary |
|---|---|
| private final byte[] bytes | |
| NSData | back to summary |
|---|---|
| public NSData(byte[] bytes) Creates a new NSData instance with the specified content.
| |
| NSData | back to summary |
|---|---|
| public NSData(String base64) throws IOException Creates a new NSData instance with the specified Base64 encoded content.
| |
| NSData | back to summary |
|---|---|
| public NSData(File file) throws IOException Creates a new NSData instance with the specified file as content.
| |
| bytes | back to summary |
|---|---|
| public byte[] bytes() Returns the bytes contained in this instance.
| |
| clone | back to summary |
|---|---|
| public NSData clone() Implements abstract com. Doc from com. Creates and returns a deep copy of this instance.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(NSObject o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getBase64EncodedData | back to summary |
|---|---|
| public String getBase64EncodedData() Gets the Base64 encoded data contained in this instance.
| |
| getBytes | back to summary |
|---|---|
| public void getBytes(ByteBuffer buf, int length) Copies data from this instance into the specified buffer.
| |
| getBytes | back to summary |
|---|---|
| public void getBytes(ByteBuffer buf, int rangeStart, int rangeStop) Copies data from this instance into the specified buffer.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| length | back to summary |
|---|---|
| public int length() Returns the number of bytes stored in this instance.
| |
| toASCII | back to summary |
|---|---|
| protected void toASCII(StringBuilder ascii, int level) Implements abstract com. Doc from com. Generates the ASCII representation of this object. The generated ASCII representation does not end with a newline. Complies with the Old-Style ASCII Property Lists definition.
| |
| toASCIIGnuStep | back to summary |
|---|---|
| protected void toASCIIGnuStep(StringBuilder ascii, int level) Implements abstract com. Doc from com. Generates the ASCII representation of this object in the GnuStep format. The generated ASCII representation does not end with a newline.
| |
| toBinary | back to summary |
|---|---|
| pack-priv void toBinary(BinaryPropertyListWriter out) throws IOException Implements abstract com. Doc from com. Generates the binary representation of the object.
| |
| toJavaObject | back to summary |
|---|---|
| public Object toJavaObject() Implements abstract com. Doc from com. Converts this NSObject into an equivalent object of the Java Runtime Environment.
| |
| toXML | back to summary |
|---|---|
| pack-priv void toXML(StringBuilder xml, int level) Implements abstract com. Doc from com. Generates the XML representation of the object (without XML headers or enclosing plist-tags).
| |