com.judoscript.util
Class ZipFS

java.lang.Object
  extended by com.judoscript.util.VirtualFS
      extended by com.judoscript.util.ZipFS

public class ZipFS
extends VirtualFS

This class represents a read-only file system for a zip file.


Nested Class Summary
 class ZipFS.ZippedDirectory
           
 class ZipFS.ZippedFile
           
 
Nested classes/interfaces inherited from class com.judoscript.util.VirtualFS
VirtualFS.VirtualFile
 
Field Summary
static java.lang.String ROOT_NAME
           
 
Constructor Summary
ZipFS(java.lang.String zipFile)
           
ZipFS(java.util.zip.ZipFile zipFile)
           
 
Method Summary
 void close()
           
 java.io.File getFile(java.lang.String path)
           
 
Methods inherited from class com.judoscript.util.VirtualFS
getInputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_NAME

public static final java.lang.String ROOT_NAME
See Also:
Constant Field Values
Constructor Detail

ZipFS

public ZipFS(java.lang.String zipFile)
      throws java.io.IOException
Throws:
java.io.IOException

ZipFS

public ZipFS(java.util.zip.ZipFile zipFile)
Method Detail

close

public void close()

getFile

public java.io.File getFile(java.lang.String path)
                     throws java.io.FileNotFoundException
Specified by:
getFile in class VirtualFS
Throws:
java.io.FileNotFoundException