| java.lang.Object sun.tools.jar.Main
Main | public class Main (Code) | | This class implements a simple utility for creating files in the JAR
(Java Archive) file format. The JAR format is based on the ZIP file
format, with optional meta-information stored in a MANIFEST entry.
|
Method Summary | |
void | addFile(ZipOutputStream zos, File file) | void | create(OutputStream out, String[] files, Manifest manifest) | void | dumpIndex(String rootjar, JarIndex index) Output the class index table to the INDEX.LIST file of the
root jar file. | protected void | error(String s) | String[] | expand(String[] files) | void | expand(File dir, String[] files, Vector v, Hashtable t) | void | extract(InputStream in, String files) | ZipEntry | extractFile(ZipInputStream zis, ZipEntry e) | void | fatalError(Exception e) | void | fatalError(String s) | void | genIndex(String rootjar, String[] files) Generate class index file for the specified root jar file. | Vector | getJarPath(String jar) | void | list(InputStream in, String files) | public static void | main(String args) | protected void | output(String s) | boolean | parseArgs(String args) | void | printEntry(ZipEntry e) | public synchronized boolean | run(String args) | boolean | update(InputStream in, OutputStream out, InputStream newManifest) | void | usageError() |
SEPARATOR | final static char SEPARATOR(Code) | | |
cflaguflagxflagtflagvflagflag0Mflagiflag | boolean cflaguflagxflagtflagvflagflag0Mflagiflag(Code) | | |
dumpIndex | void dumpIndex(String rootjar, JarIndex index) throws IOException(Code) | | Output the class index table to the INDEX.LIST file of the
root jar file.
|
error | protected void error(String s)(Code) | | Print an error mesage; like something is broken
|
output | protected void output(String s)(Code) | | Print an output message; like verbose output and the like
|
usageError | void usageError()(Code) | | |
|
|