public class ZipFileSystem extends FileSystem
FileSystem.DirectoryEntry, FileSystem.FileSystemOfflineException
logger, loggerUrl, NULL, PROP_CASE_INSENSITIVE, properties
Modifier | Constructor and Description |
---|---|
protected |
ZipFileSystem(java.net.URI root) |
Modifier and Type | Method and Description |
---|---|
FileObject |
getFileObject(java.lang.String filename)
return the FileObject that corresponds to the name.
|
java.io.File |
getLocalRoot()
return the folder that is a local copy of the filesystem.
|
protected java.util.zip.ZipFile |
getZipFile() |
boolean |
isDirectory(java.lang.String filename)
return true if the name is a directory.
|
java.lang.String[] |
listDirectory(java.lang.String directory)
returns a list of the names of the files in a directory.
|
java.lang.String[] |
listDirectory(java.lang.String directory,
java.lang.String regex)
returns a list of the names of the files in a directory that match regex.
|
java.lang.String |
toString() |
create, create, create, create, create, create, createFileSystem, getExceptionHandler, getListing, getListing, getProperty, getRootURI, listDirectory, listDirectory, listDirectoryDeep, peek, peekInstances, recreate, recreate, registerFileSystemFactory, reset, reset, setExceptionHandler, settings, splitUrl, toCanonicalFilename, toCanonicalFolderName, toCanonicalFolderName
protected ZipFileSystem(java.net.URI root) throws java.io.IOException
java.io.IOException
protected java.util.zip.ZipFile getZipFile()
public FileObject getFileObject(java.lang.String filename)
FileSystem
getFileObject
in class FileSystem
filename
- the file name within the filesystempublic boolean isDirectory(java.lang.String filename) throws java.io.IOException
FileSystem
isDirectory
in class FileSystem
filename
- the namejava.io.IOException
public java.lang.String[] listDirectory(java.lang.String directory) throws java.io.IOException
FileSystem
listDirectory
in class FileSystem
directory
- the directory name within the filesystem.java.io.IOException
public java.lang.String[] listDirectory(java.lang.String directory, java.lang.String regex) throws java.io.IOException
FileSystem
listDirectory
in class FileSystem
directory
- the directoryregex
- regular expressionjava.io.IOException
public java.io.File getLocalRoot()
FileSystem
getLocalRoot
in class FileSystem
public java.lang.String toString()
toString
in class java.lang.Object