org.objectweb.jonas.common
Class JJarFile

java.lang.Object
  extended byjava.util.zip.ZipFile
      extended byjava.util.jar.JarFile
          extended byorg.objectweb.jonas.common.JJarFile
All Implemented Interfaces:
java.util.zip.ZipConstants

public class JJarFile
extends java.util.jar.JarFile

This class implements a JarFile that adds a extract/write method

Author:
Eric Hardesty

Field Summary
 
Fields inherited from class java.util.jar.JarFile
MANIFEST_NAME
 
Fields inherited from class java.util.zip.ZipFile
CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER, OPEN_DELETE, OPEN_READ
 
Constructor Summary
JJarFile(java.io.File file)
          Constructs a new JarFile with the specified File.
JJarFile(java.io.File file, boolean verify)
          Constructs a new JarFile with the specified File.
JJarFile(java.io.File file, boolean verify, int mode)
          Constructs a new JarFile with the specified File.
JJarFile(java.lang.String name)
          Constructs a new JarFile with the specified File.
JJarFile(java.lang.String name, boolean verify)
          Constructs a new JarFile with the specified File.
 
Method Summary
 void extract(java.util.jar.JarEntry jEnt, java.lang.String filename)
          Extract the specified Jar Entry to the path given
 
Methods inherited from class java.util.jar.JarFile
entries, getEntry, getInputStream, getJarEntry, getManifest
 
Methods inherited from class java.util.zip.ZipFile
close, finalize, getName, size
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JJarFile

public JJarFile(java.io.File file)
         throws java.io.IOException
Constructs a new JarFile with the specified File.

Parameters:
file - the jar file to be opened

JJarFile

public JJarFile(java.io.File file,
                boolean verify)
         throws java.io.IOException
Constructs a new JarFile with the specified File.

Parameters:
file - the jar file to be opened

JJarFile

public JJarFile(java.io.File file,
                boolean verify,
                int mode)
         throws java.io.IOException
Constructs a new JarFile with the specified File.

Parameters:
file - the jar file to be opened
mode - int of the mode to open the jar

JJarFile

public JJarFile(java.lang.String name)
         throws java.io.IOException
Constructs a new JarFile with the specified File.

Parameters:
name - the name of the jar file to be opened

JJarFile

public JJarFile(java.lang.String name,
                boolean verify)
         throws java.io.IOException
Constructs a new JarFile with the specified File.

Parameters:
name - the name of the jar file to be opened
Method Detail

extract

public void extract(java.util.jar.JarEntry jEnt,
                    java.lang.String filename)
             throws java.io.IOException
Extract the specified Jar Entry to the path given

Parameters:
jEnt - the JarEntry to extract
filename - the filename to write the extracted file
Throws:
java.io.IOException