Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jsd.ftp.jar
Class JarSelectiveExtractor  view JarSelectiveExtractor download JarSelectiveExtractor.java

java.lang.Object
  extended byjsd.ftp.jar.JarExtractor
      extended byjsd.ftp.jar.JarSelectiveExtractor
All Implemented Interfaces:
java.lang.Runnable

public class JarSelectiveExtractor
extends JarExtractor

This is JAR file extractor class. It extracts the JAR file in a separate thread. Where we are passing a MyJarObserver object to track the current status of this decompression.


Field Summary
private  java.util.zip.ZipEntry[] mEntry
           
 
Fields inherited from class jsd.ftp.jar.JarExtractor
mbIsPauseRequest, mbIsStopRequest, mDir, mJarFile, mObserverCont
 
Constructor Summary
JarSelectiveExtractor(java.util.zip.ZipEntry[] entry, java.io.File jarFile, java.io.File dir)
           
 
Method Summary
 void extract()
          invoke a new thread and start decompression
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 java.lang.String toString()
          get jar file name
 
Methods inherited from class jsd.ftp.jar.JarExtractor
addObserver, extract, extract, isPaused, isStopped, pause, removeObserver, resume, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mEntry

private java.util.zip.ZipEntry[] mEntry
Constructor Detail

JarSelectiveExtractor

public JarSelectiveExtractor(java.util.zip.ZipEntry[] entry,
                             java.io.File jarFile,
                             java.io.File dir)
Method Detail

extract

public void extract()
invoke a new thread and start decompression

Specified by:
extract in class JarExtractor

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.


toString

public java.lang.String toString()
get jar file name

Overrides:
toString in class JarExtractor