anon.util
Class ZipArchiver

java.lang.Object
  extended by java.util.Observable
      extended by anon.util.ZipArchiver

public class ZipArchiver
extends java.util.Observable


Nested Class Summary
 class ZipArchiver.ZipEvent
           
 
Field Summary
private  java.util.zip.ZipFile m_archive
           
 
Constructor Summary
ZipArchiver(java.util.zip.ZipFile archive)
           
 
Method Summary
 boolean extractArchive(java.lang.String a_archivePathName, java.lang.String destination)
           
private static void extractErrorRollback(java.util.Vector entries, java.lang.String destination)
           
 boolean extractSingleEntry(java.lang.String entryName, java.lang.String destinationName)
           
private  void notifyAboutChanges(long sizeOfCopied, long totalSize, int progressStatus)
           
private  void notifyAboutChangesInterruptable(long sizeOfCopied, long totalSize, int progressStatus)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_archive

private java.util.zip.ZipFile m_archive
Constructor Detail

ZipArchiver

public ZipArchiver(java.util.zip.ZipFile archive)
Method Detail

extractSingleEntry

public boolean extractSingleEntry(java.lang.String entryName,
                                  java.lang.String destinationName)

extractArchive

public boolean extractArchive(java.lang.String a_archivePathName,
                              java.lang.String destination)

notifyAboutChanges

private void notifyAboutChanges(long sizeOfCopied,
                                long totalSize,
                                int progressStatus)

notifyAboutChangesInterruptable

private void notifyAboutChangesInterruptable(long sizeOfCopied,
                                             long totalSize,
                                             int progressStatus)
                                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

extractErrorRollback

private static void extractErrorRollback(java.util.Vector entries,
                                         java.lang.String destination)