public void load(){
  files=new HashMap<String,VirtualFile>();
  ZipFile zipFile=null;
  try {
    zipFile=new ZipFile(path);
    Enumeration e=zipFile.getEntries();
    while (e.hasMoreElements()) {
      ZipEntry ze=(ZipEntry)e.nextElement();
      InputStream inputStream=zipFile.getInputStream(ze);
      VirtualFile f=new InMemoryFile(inputStream,ze.getSize(),path + "$" + ze.getName(),MimeMappings.getMimeType(ze.getName()),ze.getTime());
      files.put(ze.getName(),f);
    }
  }
 catch (  SwcException.UnknownZipFormat e) {
    throw new SwcException.NotASwcFile(path);
  }
catch (  SwcException e) {
    throw e;
  }
catch (  Exception e) {
    throw new SwcException.FilesNotRead(e.getMessage());
  }
 finally {
    try {
      if (zipFile != null)       zipFile.close();
    }
 catch (    IOException ioe) {
    }
  }
}

public void load ( ) { files = new HashMap < String , VirtualFile > ( ) ; ZipFile zipFile = null ; try { zipFile = new ZipFile ( path ) ; Enumeration e = zipFile . getEntries ( ) ; while ( e . hasMoreElements ( ) ) { ZipEntry ze = ( ZipEntry ) e . nextElement ( ) ; InputStream inputStream = zipFile . getInputStream ( ze ) ; VirtualFile f = new InMemoryFile ( inputStream , ze . getSize ( ) , path + "$" + ze . getName ( ) , MimeMappings . getMimeType ( ze . getName ( ) ) , ze . getTime ( ) ) ; files . put ( ze . getName ( ) , f ) ; } } catch ( SwcException . UnknownZipFormat e ) { throw new SwcException . NotASwcFile ( path ) ; } catch ( SwcException e ) { throw e ; } catch ( Exception e ) { throw new SwcException . FilesNotRead ( e . getMessage ( ) ) ; } finally { try { if ( zipFile != null ) zipFile . close ( ) ; } catch ( IOException ioe ) { } } }
fills in " files " with an inmemoryfile for each zip file entry .
