public class SubFileSystem extends FileSystem
FileSystem.DirectoryEntry, FileSystem.FileSystemOfflineExceptionlogger, loggerUrl, NULL, PROP_CASE_INSENSITIVE, properties| Modifier | Constructor and Description |
|---|---|
protected |
SubFileSystem(FileSystem parent,
java.lang.String dir) |
| Modifier and Type | Method and Description |
|---|---|
FileSystem |
createFileSystem(java.lang.String directory)
create a new filesystem that is a part of this filesystem, rooted at
directory.
|
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 FileSystem |
getParent()
return the parent filesystem.
|
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, getExceptionHandler, getListing, getListing, getProperty, getRootURI, listDirectory, listDirectory, listDirectoryDeep, peek, peekInstances, recreate, recreate, registerFileSystemFactory, reset, reset, setExceptionHandler, settings, splitUrl, toCanonicalFilename, toCanonicalFolderName, toCanonicalFolderNameprotected SubFileSystem(FileSystem parent, java.lang.String dir) throws java.net.MalformedURLException, java.net.URISyntaxException
java.net.MalformedURLExceptionjava.net.URISyntaxExceptionpublic FileObject getFileObject(java.lang.String filename)
FileSystemgetFileObject in class FileSystemfilename - the file name within the filesystempublic boolean isDirectory(java.lang.String filename)
throws java.io.IOException
FileSystemisDirectory in class FileSystemfilename - the namejava.io.IOExceptionpublic java.lang.String[] listDirectory(java.lang.String directory)
throws java.io.IOException
FileSystemlistDirectory in class FileSystemdirectory - the directory name within the filesystem.java.io.IOExceptionfor listings constrained by regular expressions.public java.lang.String[] listDirectory(java.lang.String directory,
java.lang.String regex)
throws java.io.IOException
FileSystemlistDirectory in class FileSystemdirectory - the directoryregex - regular expressionjava.io.IOExceptionpublic java.io.File getLocalRoot()
FileSystemgetLocalRoot in class FileSystempublic java.lang.String toString()
toString in class java.lang.Objectprotected FileSystem getParent()
public FileSystem createFileSystem(java.lang.String directory) throws java.net.URISyntaxException
FileSystemcreateFileSystem in class FileSystemdirectory - subdirectory within the filesystem.java.net.URISyntaxException