| org.apache.commons.vfs.FileSystem
All known Subclasses: org.apache.commons.vfs.provider.url.UrlFileSystem, org.apache.commons.vfs.provider.tar.TarFileSystem, org.apache.commons.vfs.provider.zip.ZipFileSystem, org.apache.commons.vfs.provider.sftp.SftpFileSystem, org.apache.commons.vfs.provider.local.LocalFileSystem, org.apache.commons.vfs.provider.http.HttpFileSystem, org.apache.commons.vfs.provider.AbstractFileSystem, org.apache.commons.vfs.provider.compressed.CompressedFileFileSystem,
FileSystem | public interface FileSystem (Code) | | A file system, made up of a hierarchy of files.
author: Adam Murdoch version: $Revision: 484648 $ $Date: 2006-12-08 08:18:36 -0800 (Fri, 08 Dec 2006) $ |
addJunction | void addJunction(String junctionPoint, FileObject targetFile) throws FileSystemException(Code) | | Adds a junction to this file system. A junction is a link that attaches
the supplied file to a point in this file system, making it look like
part of the file system.
Parameters: junctionPoint - The point in this file system to add the junction. Parameters: targetFile - The file to link to. throws: FileSystemException - If this file system does not support junctions, or the junctionpoint or target file is invalid (the file system may not supportnested junctions, for example). |
addListener | void addListener(FileObject file, FileListener listener)(Code) | | Adds a listener on a file in this file system.
Parameters: file - The file to attach the listener to. Parameters: listener - The listener to add. |
getFileSystemOptions | FileSystemOptions getFileSystemOptions()(Code) | | Returns the FileSystemOptions used to instantiate this filesystem
|
getLastModTimeAccuracy | double getLastModTimeAccuracy()(Code) | | Returns the accuracy of the last modification time
ms 0 perfectly accurate, >0 might be off by this value e.g. sftp 1000ms |
getParentLayer | FileObject getParentLayer() throws FileSystemException(Code) | | Returns the parent layer if this is a layered file system.
The parent layer, or null if this is not a layered file system. |
getRootName | FileName getRootName()(Code) | | Returns the name of the root file of this file system.
|
hasCapability | boolean hasCapability(Capability capability)(Code) | | Determines if this file system has a particular capability.
Parameters: capability - The capability to check for. true if this filesystem has the requested capability.Note that not all files in the file system may have thecapability. |
removeListener | void removeListener(FileObject file, FileListener listener)(Code) | | Removes a listener from a file in this file system.
Parameters: file - The file to remove the listener from. Parameters: listener - The listener to remove. |
replicateFile | File replicateFile(FileObject file, FileSelector selector) throws FileSystemException(Code) | | Creates a temporary local copy of a file and its descendents. If
this file is already a local file, a copy is not made.
Note that the local copy may include additonal files, that were
not selected by the given selector.
Parameters: file - The file to replicate. Parameters: selector - The selector to use to select the files to replicate. The local copy of this file. throws: FileSystemException - If this file does not exist, or on error replicating the file. |
resolveFile | FileObject resolveFile(String name) throws FileSystemException(Code) | | Finds a file in this file system.
Parameters: name - The name of the file. This must be an absolute path. The file. Never returns null. |
setAttribute | void setAttribute(String attrName, Object value) throws FileSystemException(Code) | | Sets the value of an attribute of the file's content. Creates the
file if it does not exist.
Parameters: attrName - The name of the attribute. Parameters: value - The value of the attribute. throws: FileSystemException - If the file is read-only, or is being read, or if the attributeis not supported, or on error setting the attribute. See Also: FileContent.setAttribute |
|
|