|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.plist.NSObject
net.sf.plist.NSData
public class NSData
Represents a binary blob.
In this implementation, a primitive byte array or a ByteArrayInputStream
is used to represent the NSData
.
ByteArrayInputStream
Constructor Summary | |
---|---|
NSData(byte[] theData)
Constructor. |
Method Summary | |
---|---|
byte[] |
data()
Return the contents of this object as primitive array. |
byte[] |
getValue()
Get the unmodifiable value of this object. |
ByteArrayInputStream |
stream()
Get a ByteArrayInputStream which can be used to read the contents of this object. |
Methods inherited from class net.sf.plist.NSObject |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NSData(byte[] theData)
theData
- value of the new objectMethod Detail |
---|
public byte[] getValue()
stream()
instead.
getValue
in class NSObject
data()
public ByteArrayInputStream stream()
ByteArrayInputStream
which can be used to read the contents of this object.
ByteArrayInputStream
public byte[] data()
Return the contents of this object as primitive array.
Because the array is copied to keep this object immutable,
it's recommended to use stream()
instead.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |