|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.cldc.isolate.Util
public final class Util
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static boolean |
verify(String jarPath)
Use VM verifier to make sure that supplied jar is correct. |
static boolean |
verify(String jarPath,
int chunkSize)
Use VM verifier to make sure that supplied jar is correct. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static boolean verify(String jarPath)
Note: for this API to function, compilation time flag ENABLE_VERIFY_ONLY=true must be specified
jarPath - path to JAR file to verify
public static boolean verify(String jarPath,
int chunkSize)
The verification of a JAR is performed in chunks.
During verification of a chunk no other isolates can execute.
Each chunk consists of one or more class files.
The size of a chunk is the total compressed size of JAR entries
in the chunk. Verification of a chunk stops when either the
size of a chunk exceeds the specified chunkSize or
there are no more entries in the JAR. Larger values of
chunkSize ensure faster verification of the JAR,
but other active isolates will have less chances to execute
while the verification is in progress.
This method is multitask-safe, i.e. it can be invoked from multiple tasks at the same time.
The method returns after the whole JAR is verified and the return value indicates if the JAR is correct.
Note: for this API to function, compilation time flag ENABLE_VERIFY_ONLY=true must be specified
jarPath - path to JAR file to verifychunkSize - size of the JAR file chunk
IllegalArgumentException - if chunkSize is not
positive
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||