All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.Data

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.Data

public class Data
extends NativeObject
implements Coding
This class wraps the Objective-C class NSData.


Constructor Index

 o Data()
This default constructor is equivalent to Objective-C's [[NSData alloc] init].
 o Data(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Data(byte[])
 o Data(byte[], int, int)
 o Data(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o Data(File)
 o Data(String)

Method Index

 o bytes(int, int)
 o data()
A wrapper for the + data Objective-C class method.
 o dataWithContentsOfFile(String)
A wrapper for the + dataWithContentsOfFile: Objective-C class method.
 o dataWithContentsOfMappedFile(File)
 o encodeWithCoder(Coder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).
 o initWithBytes(byte[], int, int)
 o initWithPath(String)
 o initWithString(String)
 o isEqualToData(Data)
A wrapper for the - isEqualToData: Objective-C instance method.
 o length()
 o subdataWithRange(Range)
A wrapper for the - subdataWithRange: Objective-C instance method.
 o writeToFile(String, boolean)
A wrapper for the - writeToFile:atomically: Objective-C instance method.

Constructors

 o Data
 public Data(byte bytes[],
             int start,
             int length)
 o Data
 public Data(byte bytes[])
 o Data
 public Data(String ppl)
 o Data
 public Data(File path)
 o Data
 protected Data(boolean shouldAllocate,
                int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Data
 public Data()
This default constructor is equivalent to Objective-C's [[NSData alloc] init].

 o Data
 public Data(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Methods

 o isEqualToData
 public native boolean isEqualToData(Data other)
A wrapper for the - isEqualToData: Objective-C instance method.

 o subdataWithRange
 public native Data subdataWithRange(Range range)
A wrapper for the - subdataWithRange: Objective-C instance method.

 o writeToFile
 public native boolean writeToFile(String path,
                                   boolean useAuxiliaryFile)
A wrapper for the - writeToFile:atomically: Objective-C instance method.

 o data
 public static native Object data()
A wrapper for the + data Objective-C class method.

 o dataWithContentsOfFile
 public static native Object dataWithContentsOfFile(String path)
A wrapper for the + dataWithContentsOfFile: Objective-C class method.

 o encodeWithCoder
 public native void encodeWithCoder(Coder aCoder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).

 o dataWithContentsOfMappedFile
 public static Data dataWithContentsOfMappedFile(File file)
 o length
 public native int length()
 o bytes
 public native byte[] bytes(int start,
                            int length)
 o initWithBytes
 protected native void initWithBytes(byte bytes[],
                                     int start,
                                     int length)
 o initWithString
 protected native void initWithString(String ppl)
 o initWithPath
 protected native void initWithPath(String path)

All Packages  Class Hierarchy  This Package  Previous  Next  Index