| java.lang.Object com.sun.midp.installer.JarReader
JarReader | public class JarReader (Code) | | This class provides a Java API for reading an entry from a Jar file stored
on the file system.
|
Method Summary | |
public static byte[] | readJarEntry(SecurityToken securityToken, String jarFilePath, String entryName) Returns the content of the given entry in the JAR file on the
file system given by jarFilePath.
Parameters: securityToken - token with permission to install software Parameters: jarFilePath - file pathname of the JAR file to read. | public static byte[] | readJarEntry(String jarFilePath, String entryName) Returns the content of the given entry in the JAR file on the
file system given by jarFilePath.
Parameters: jarFilePath - file pathname of the JAR file to read. |
readJarEntry | public static byte[] readJarEntry(SecurityToken securityToken, String jarFilePath, String entryName) throws IOException(Code) | | Returns the content of the given entry in the JAR file on the
file system given by jarFilePath.
Parameters: securityToken - token with permission to install software Parameters: jarFilePath - file pathname of the JAR file to read. Maybe a relative pathname. Parameters: entryName - name of the entry to return. the content of the given entry in a byte array or null ifthe entry was not found exception: IOException - if JAR is corrupt or not found exception: IOException - if the entry does not exist. exception: SecurityException - if the caller does not have permissionto install software. |
readJarEntry | public static byte[] readJarEntry(String jarFilePath, String entryName) throws IOException(Code) | | Returns the content of the given entry in the JAR file on the
file system given by jarFilePath.
Parameters: jarFilePath - file pathname of the JAR file to read. Maybe a relative pathname. Parameters: entryName - name of the entry to return. the content of the given entry in a byte array or null ifthe entry was not found exception: IOException - if JAR is corrupt or not found exception: IOException - if the entry does not exist. exception: SecurityException - if the caller does not have permissionto install software. |
|
|