| java.lang.Object com.sun.cldchi.jvm.JVM
Field Summary | |
final public static int | REMOVE_CLASSES_FROM_JAR If this flag is defined and the romization is successful, class
files are removed from the JAR file(s) after the romization
process. | final public static int | STATUS_CANCELLED Returned by getAppImageProgress() to indicate that the last image
creation process has was cancelled before it was completed. | final public static int | STATUS_FAILED Returned by getAppImageProgress() to indicate that the last image
creation process has failed before it was completed. | final public static int | STATUS_START Any value returned by getAppImageProgress() that.s greater or equal to
STATUS_START, but lower than STATUS_SUCCEEDED, means that the
image creation is still taking place. | final public static int | STATUS_SUCCEEDED Returned by getAppImageProgress() to indicate that the last image
creation process has succeeded. | final public static int | STATUS_VERIFY_FAILED Returned by verifyJar() to indicate JAR classes verification
failed by some reason. | final public static int | STATUS_VERIFY_NOTHING Returned by verifyJar() to indicate no classes verification
has ever been started since VM didn't find any classes in JAR. | final public static int | STATUS_VERIFY_SUCCEEDED Returned by verifyJar() to indicate all JAR classes were
successfully verified. | final public static int | STATUS_VIRGIN Returned by getAppImageProgress() to indicate that no image
creation process has ever been started since the VM was bootstraped. |
Method Summary | |
native public static void | cancelImageCreation() If an image creation process is underway, cancel it. | public static void | createAppImage(String jarFile, String binFile, int flags) | native public static int | getAppImageProgress() | native public static void | loadLibrary(String libName) This method is used to load binary library into the VM. | public static void | unchecked_byte_arraycopy(byte[] src, int srcOffset, byte[] dst, int dstOffset, int length) Copy an array from the specified source array, beginning at the
specified position, to the specified position of the destination array. | public static void | unchecked_char_arraycopy(char[] src, int srcOffset, char[] dst, int dstOffset, int length) | public static void | unchecked_int_arraycopy(int[] src, int srcOffset, int[] dst, int dstOffset, int length) | public static void | unchecked_long_arraycopy(long[] src, int srcOffset, long[] dst, int dstOffset, int length) | public static void | unchecked_obj_arraycopy(Object[] src, int srcOffset, Object[] dst, int dstOffset, int length) | public static int | verifyJar(String jar, int chunkSize) Verifies all classes of the given JAR package within the current
VM instance. |
REMOVE_CLASSES_FROM_JAR | final public static int REMOVE_CLASSES_FROM_JAR(Code) | | If this flag is defined and the romization is successful, class
files are removed from the JAR file(s) after the romization
process. This parameter is ignored for source romization.
|
STATUS_CANCELLED | final public static int STATUS_CANCELLED(Code) | | Returned by getAppImageProgress() to indicate that the last image
creation process has was cancelled before it was completed.
|
STATUS_FAILED | final public static int STATUS_FAILED(Code) | | Returned by getAppImageProgress() to indicate that the last image
creation process has failed before it was completed.
|
STATUS_START | final public static int STATUS_START(Code) | | Any value returned by getAppImageProgress() that.s greater or equal to
STATUS_START, but lower than STATUS_SUCCEEDED, means that the
image creation is still taking place.
|
STATUS_SUCCEEDED | final public static int STATUS_SUCCEEDED(Code) | | Returned by getAppImageProgress() to indicate that the last image
creation process has succeeded.
|
STATUS_VERIFY_FAILED | final public static int STATUS_VERIFY_FAILED(Code) | | Returned by verifyJar() to indicate JAR classes verification
failed by some reason.
|
STATUS_VERIFY_NOTHING | final public static int STATUS_VERIFY_NOTHING(Code) | | Returned by verifyJar() to indicate no classes verification
has ever been started since VM didn't find any classes in JAR.
|
STATUS_VERIFY_SUCCEEDED | final public static int STATUS_VERIFY_SUCCEEDED(Code) | | Returned by verifyJar() to indicate all JAR classes were
successfully verified.
|
STATUS_VIRGIN | final public static int STATUS_VIRGIN(Code) | | Returned by getAppImageProgress() to indicate that no image
creation process has ever been started since the VM was bootstraped.
|
cancelImageCreation | native public static void cancelImageCreation()(Code) | | If an image creation process is underway, cancel it. This will
force createAppImage() to delete all temporary files, as well as
the output image file, and return immediately. A future call to
getAppImageProgress() will return STATUS_CANCELLED.
If an image creation process is not underway, this method has no
effect.
|
getAppImageProgress | native public static int getAppImageProgress()(Code) | | |
loadLibrary | native public static void loadLibrary(String libName) throws Error(Code) | | This method is used to load binary library into the VM.
It allows to call native function implementations from this library.
Parameters: libName - name of the library WITHOUT EXTENSION. It was made to make java code platform-independent. exception: Error - if the VM fails to load the library with this name. |
unchecked_byte_arraycopy | public static void unchecked_byte_arraycopy(byte[] src, int srcOffset, byte[] dst, int dstOffset, int length)(Code) | | Copy an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
Impose the following restrictions on the input arguments:
dst is not null .
src is not null .
- The
srcOffset argument is not negative.
- The
dstOffset argument is not negative.
- The
length argument is not negative.
srcOffset+length is not greater than
src.length , the length of the source array.
dstOffset+length is not greater than
dst.length , the length of the destination array.
- any actual component of the source array from position
srcOffset through srcOffset+length-1
can be converted to the component type of the destination array
The caller is responsible that these restrictions are not violated.
If any of the restrictions above is violated, the behavior is undefined.
Parameters: src - the source array. Parameters: srcOffset - start position in the source array. Parameters: dst - the destination array. Parameters: dstOffset - start position in the destination data. Parameters: length - the number of array elements to be copied. |
unchecked_char_arraycopy | public static void unchecked_char_arraycopy(char[] src, int srcOffset, char[] dst, int dstOffset, int length)(Code) | | |
unchecked_int_arraycopy | public static void unchecked_int_arraycopy(int[] src, int srcOffset, int[] dst, int dstOffset, int length)(Code) | | |
unchecked_long_arraycopy | public static void unchecked_long_arraycopy(long[] src, int srcOffset, long[] dst, int dstOffset, int length)(Code) | | |
unchecked_obj_arraycopy | public static void unchecked_obj_arraycopy(Object[] src, int srcOffset, Object[] dst, int dstOffset, int length)(Code) | | |
verifyJar | public static int verifyJar(String jar, int chunkSize)(Code) | | Verifies all classes of the given JAR package within the current
VM instance. The JAR path should be included into classpath(s) of
the VM.
Parameters: jar - specifies the JAR file to be verified. Parameters: chunkSize - amount of bytecode to be verified with a singlenative call, however not less than one class will beverified with a single call. status of the JAR classes verification, it can be one of thefollowing values STATUS_VERIFY_NOTHING, STATUS_VERIFY_SUCCEEDED orSTATUS_VERIFY_FAILED |
|
|