JarReaderpublic class JarReader extends Object This class provides a Java API for reading an entry from a Jar file stored
on the file system. |
Methods Summary |
---|
static byte[] | readJarEntry(com.sun.midp.security.SecurityToken securityToken, java.lang.String jarFilePath, java.lang.String entryName)Returns the content of the given entry in the JAR file on the
file system given by jarFilePath.
byte[] asciiFilename;
byte[] asciiEntryName;
securityToken.checkIfPermissionAllowed(Permissions.AMS);
asciiFilename = Util.toCString(jarFilePath);
asciiEntryName = Util.toCString(entryName);
return readJarEntry0(asciiFilename, asciiEntryName);
| private static native byte[] | readJarEntry0(byte[] localJarFilePath, byte[] localEntryName)Performs the same function as readJarEntry, except file names
are passed in localized characters (so that unicode -> "C" string
conversion does not need to happen inside native code).
|
|