Save This Page
Home » openjdk-7 » sun.tools » jar » [javadoc | source]
sun.tools.jar
public class: Main [javadoc | source]
java.lang.Object
   sun.tools.jar.Main
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.
Field Summary
 String program     
 PrintStream out     
 PrintStream err     
 String fname     
 String mname     
 String ename     
 String zname     
 String[] files     
 String rootjar     
 Hashtable filesTable     
 Vector paths     
 Vector v     
 CRC32 crc32     
 boolean cflag     
 boolean uflag     
 boolean xflag     
 boolean tflag     
 boolean vflag     
 boolean flag0     
 boolean Mflag     
 boolean iflag     
static final  String MANIFEST     
static final  String MANIFEST_DIR     
static final  String VERSION     
static final  char SEPARATOR     
static final  String INDEX     
Constructor:
 public Main(PrintStream out,
    PrintStream err,
    String program) 
Method from sun.tools.jar.Main Summary:
addFile,   create,   dumpIndex,   error,   expand,   expand,   extract,   extractFile,   fatalError,   fatalError,   genIndex,   getJarPath,   list,   main,   output,   parseArgs,   printEntry,   run,   update,   usageError
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.tools.jar.Main Detail:
  void addFile(ZipOutputStream zos,
    File file) throws IOException 
  void create(OutputStream out,
    String[] files,
    Manifest manifest) throws IOException 
  void dumpIndex(String rootjar,
    JarIndex index) throws IOException 
    Output the class index table to the INDEX.LIST file of the root jar file.
 protected  void error(String s) 
    Print an error mesage; like something is broken
 String[] expand(String[] files) 
  void expand(File dir,
    String[] files,
    Vector v,
    Hashtable t) 
  void extract(InputStream in,
    String[] files) throws IOException 
 ZipEntry extractFile(ZipInputStream zis,
    ZipEntry e) throws IOException 
  void fatalError(Exception e) 
  void fatalError(String s) 
  void genIndex(String rootjar,
    String[] files) throws IOException 
    Generate class index file for the specified root jar file.
 Vector getJarPath(String jar) throws IOException 
  void list(InputStream in,
    String[] files) throws IOException 
 public static  void main(String[] args) 
 protected  void output(String s) 
    Print an output message; like verbose output and the like
 boolean parseArgs(String[] args) 
  void printEntry(ZipEntry e) throws IOException 
 public synchronized boolean run(String[] args) 
 boolean update(InputStream in,
    OutputStream out,
    InputStream newManifest) throws IOException 
  void usageError()