|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of FileSystemException in org.apache.commons.vfs |
Methods in org.apache.commons.vfs that throw FileSystemException | |
boolean |
FileTypeSelector.includeFile(FileSelectInfo fileInfo)
Determines if a file or folder should be selected. |
static FileSystemManager |
VFS.getManager()
Returns the default FileSystemManager instance |
long |
FileContent.getSize()
Determines the size of the file, in bytes. |
long |
FileContent.getLastModifiedTime()
Determines the last-modified timestamp of the file. |
void |
FileContent.setLastModifiedTime(long modTime)
Sets the last-modified timestamp of the file. |
Map |
FileContent.getAttributes()
Returns a read-only map of this file's attributes. |
String[] |
FileContent.getAttributeNames()
Lists the attributes of the file's content. |
Object |
FileContent.getAttribute(String attrName)
Gets the value of an attribute of the file's content. |
void |
FileContent.setAttribute(String attrName,
Object value)
Sets the value of an attribute of the file's content. |
Certificate[] |
FileContent.getCertificates()
Retrieves the certificates if any used to sign this file or folder. |
InputStream |
FileContent.getInputStream()
Returns an input stream for reading the file's content. |
OutputStream |
FileContent.getOutputStream()
Returns an output stream for writing the file's content. |
RandomAccessContent |
FileContent.getRandomAccessContent(RandomAccessMode mode)
Returns an stream for reading/writing the file's content. |
OutputStream |
FileContent.getOutputStream(boolean bAppend)
Returns an output stream for writing the file's content. |
void |
FileContent.close()
Closes all resources used by the content, including any open stream. |
FileContentInfo |
FileContent.getContentInfo()
get the content info. e.g. type, encoding, ... |
FileContentInfo |
FileContentInfoFactory.create(FileContent fileContent)
|
FileObject |
FileSystemManager.getBaseFile()
Returns the base file used to resolve relative paths. |
FileObject |
FileSystemManager.resolveFile(String name)
Locates a file by name. |
FileObject |
FileSystemManager.resolveFile(String name,
FileSystemOptions fileSystemOptions)
Locates a file by name. |
FileObject |
FileSystemManager.resolveFile(FileObject baseFile,
String name)
Locates a file by name. |
FileObject |
FileSystemManager.resolveFile(File baseFile,
String name)
Locates a file by name. |
FileName |
FileSystemManager.resolveName(FileName root,
String name)
Resolves a name, relative to this file name. |
FileName |
FileSystemManager.resolveName(FileName root,
String name,
NameScope scope)
Resolves a name, relative to the "root" file name. |
FileObject |
FileSystemManager.toFileObject(File file)
Converts a local file into a FileObject . |
FileObject |
FileSystemManager.createFileSystem(String provider,
FileObject file)
Creates a layered file system. |
FileObject |
FileSystemManager.createFileSystem(FileObject file)
Creates a layered file system. |
FileObject |
FileSystemManager.createVirtualFileSystem(String rootUri)
Creates an empty virtual file system. |
FileObject |
FileSystemManager.createVirtualFileSystem(FileObject rootFile)
Creates a virtual file system. |
boolean |
FileSystemManager.canCreateFileSystem(FileObject file)
Determines if a layered file system can be created for a given file. |
Collection |
FileSystemManager.getProviderCapabilities(String scheme)
Get the capabilities for a given scheme. |
FileSystemConfigBuilder |
FileSystemManager.getFileSystemConfigBuilder(String scheme)
Get the configuration builder for the given scheme |
FileName |
FileSystemManager.resolveURI(String uri)
Resolve the uri to a filename |
void |
FileSystemManager.addOperationProvider(String scheme,
FileOperationProvider operationProvider)
Adds the specified FileOperationProvider for the specified scheme. |
void |
FileSystemManager.addOperationProvider(String[] schemes,
FileOperationProvider operationProvider)
|
FileOperationProvider[] |
FileSystemManager.getOperationProviders(String scheme)
|
FileObject |
FileSystem.getRoot()
Returns the root file of this file system. |
FileObject |
FileSystem.getParentLayer()
Returns the parent layer if this is a layered file system. |
Object |
FileSystem.getAttribute(String attrName)
Gets the value of an attribute of the file system. |
void |
FileSystem.setAttribute(String attrName,
Object value)
Sets the value of an attribute of the file's content. |
FileObject |
FileSystem.resolveFile(FileName name)
Finds a file in this file system. |
FileObject |
FileSystem.resolveFile(String name)
Finds a file in this file system. |
void |
FileSystem.addJunction(String junctionPoint,
FileObject targetFile)
Adds a junction to this file system. |
void |
FileSystem.removeJunction(String junctionPoint)
Removes a junction from this file system. |
File |
FileSystem.replicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendents. |
String |
FileName.getPathDecoded()
Returns the absolute path of this file, within its file system. |
String |
FileName.getRelativeName(FileName name)
Converts a file name to a relative name, relative to this file name. |
URL |
FileObject.getURL()
Returns a URL representing this file. |
boolean |
FileObject.exists()
Determines if this file exists. |
boolean |
FileObject.isHidden()
Determines if this file is hidden. |
boolean |
FileObject.isReadable()
Determines if this file can be read. |
boolean |
FileObject.isWriteable()
Determines if this file can be written to. |
FileType |
FileObject.getType()
Returns this file's type. |
FileObject |
FileObject.getParent()
Returns the folder that contains this file. |
FileObject[] |
FileObject.getChildren()
Lists the children of this file. |
FileObject |
FileObject.getChild(String name)
Returns a child of this file. |
FileObject |
FileObject.resolveFile(String name,
NameScope scope)
Finds a file, relative to this file. |
FileObject |
FileObject.resolveFile(String path)
Finds a file, relative to this file. |
FileObject[] |
FileObject.findFiles(FileSelector selector)
Finds the set of matching descendents of this file, in depthwise order. |
void |
FileObject.findFiles(FileSelector selector,
boolean depthwise,
List selected)
Finds the set of matching descendents of this file. |
boolean |
FileObject.delete()
Deletes this file. |
int |
FileObject.delete(FileSelector selector)
Deletes all descendents of this file that match a selector. |
void |
FileObject.createFolder()
Creates this folder, if it does not exist. |
void |
FileObject.createFile()
Creates this file, if it does not exist. |
void |
FileObject.copyFrom(FileObject srcFile,
FileSelector selector)
Copies another file, and all its descendents, to this file. |
void |
FileObject.moveTo(FileObject destFile)
Move this file. |
FileContent |
FileObject.getContent()
Returns this file's content. |
void |
FileObject.close()
Closes this file, and its content. |
void |
FileObject.refresh()
This will prepare the fileObject to get resynchronized with the underlaying filesystem if required |
FileOperations |
FileObject.getFileOperations()
|
Uses of FileSystemException in org.apache.commons.vfs.cache |
Methods in org.apache.commons.vfs.cache that throw FileSystemException | |
void |
OnCallRefreshFileObject.close()
|
void |
OnCallRefreshFileObject.copyFrom(FileObject srcFile,
FileSelector selector)
|
void |
OnCallRefreshFileObject.createFile()
|
void |
OnCallRefreshFileObject.createFolder()
|
boolean |
OnCallRefreshFileObject.delete()
|
int |
OnCallRefreshFileObject.delete(FileSelector selector)
|
boolean |
OnCallRefreshFileObject.exists()
|
void |
OnCallRefreshFileObject.findFiles(FileSelector selector,
boolean depthwise,
List selected)
|
FileObject[] |
OnCallRefreshFileObject.findFiles(FileSelector selector)
|
FileObject |
OnCallRefreshFileObject.getChild(String name)
|
FileObject[] |
OnCallRefreshFileObject.getChildren()
|
FileContent |
OnCallRefreshFileObject.getContent()
|
FileType |
OnCallRefreshFileObject.getType()
|
boolean |
OnCallRefreshFileObject.isHidden()
|
boolean |
OnCallRefreshFileObject.isReadable()
|
boolean |
OnCallRefreshFileObject.isWriteable()
|
void |
OnCallRefreshFileObject.moveTo(FileObject destFile)
|
FileObject |
OnCallRefreshFileObject.resolveFile(String name,
NameScope scope)
|
FileObject |
OnCallRefreshFileObject.resolveFile(String path)
|
Uses of FileSystemException in org.apache.commons.vfs.impl |
Methods in org.apache.commons.vfs.impl that throw FileSystemException | |
void |
VirtualFileSystem.addJunction(String junctionPoint,
FileObject targetFile)
Adds a junction to this file system. |
void |
VirtualFileSystem.removeJunction(String junctionPoint)
Removes a junction from this file system. |
void |
DefaultFileSystemConfigBuilder.setUserAuthenticator(FileSystemOptions opts,
UserAuthenticator userAuthenticator)
Sets the user authenticator to get authentication informations |
void |
PrivilegedFileReplicator.init()
Initialises the component. |
File |
PrivilegedFileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendents. |
void |
DecoratedFileObject.close()
|
void |
DecoratedFileObject.copyFrom(FileObject srcFile,
FileSelector selector)
|
void |
DecoratedFileObject.createFile()
|
void |
DecoratedFileObject.createFolder()
|
boolean |
DecoratedFileObject.delete()
|
int |
DecoratedFileObject.delete(FileSelector selector)
|
boolean |
DecoratedFileObject.exists()
|
void |
DecoratedFileObject.findFiles(FileSelector selector,
boolean depthwise,
List selected)
|
FileObject[] |
DecoratedFileObject.findFiles(FileSelector selector)
|
FileObject |
DecoratedFileObject.getChild(String name)
|
FileObject[] |
DecoratedFileObject.getChildren()
|
FileContent |
DecoratedFileObject.getContent()
|
FileObject |
DecoratedFileObject.getParent()
|
FileType |
DecoratedFileObject.getType()
|
URL |
DecoratedFileObject.getURL()
|
boolean |
DecoratedFileObject.isHidden()
|
boolean |
DecoratedFileObject.isReadable()
|
boolean |
DecoratedFileObject.isWriteable()
|
void |
DecoratedFileObject.moveTo(FileObject destFile)
|
FileObject |
DecoratedFileObject.resolveFile(String name,
NameScope scope)
|
FileObject |
DecoratedFileObject.resolveFile(String path)
|
void |
DecoratedFileObject.refresh()
|
FileOperations |
DecoratedFileObject.getFileOperations()
|
void |
SynchronizedFileObject.close()
|
void |
SynchronizedFileObject.copyFrom(FileObject srcFile,
FileSelector selector)
|
void |
SynchronizedFileObject.createFile()
|
void |
SynchronizedFileObject.createFolder()
|
boolean |
SynchronizedFileObject.delete()
|
int |
SynchronizedFileObject.delete(FileSelector selector)
|
boolean |
SynchronizedFileObject.exists()
|
void |
SynchronizedFileObject.findFiles(FileSelector selector,
boolean depthwise,
List selected)
|
FileObject[] |
SynchronizedFileObject.findFiles(FileSelector selector)
|
FileObject |
SynchronizedFileObject.getChild(String name)
|
FileObject[] |
SynchronizedFileObject.getChildren()
|
FileContent |
SynchronizedFileObject.getContent()
|
FileType |
SynchronizedFileObject.getType()
|
boolean |
SynchronizedFileObject.isHidden()
|
boolean |
SynchronizedFileObject.isReadable()
|
boolean |
SynchronizedFileObject.isWriteable()
|
void |
SynchronizedFileObject.moveTo(FileObject destFile)
|
FileObject |
SynchronizedFileObject.resolveFile(String name,
NameScope scope)
|
FileObject |
SynchronizedFileObject.resolveFile(String path)
|
FileObject |
VirtualFileProvider.createFileSystem(FileObject rootFile)
Creates a virtual file system, with the supplied file as its root. |
FileObject |
VirtualFileProvider.createFileSystem(String rootUri)
Creates an empty virtual file system. |
void |
DefaultFileReplicator.init()
Initialises this component. |
File |
DefaultFileReplicator.allocateFile(String baseName)
Allocates a new temporary file. |
protected File |
DefaultFileReplicator.createAndAddFile(File parent,
String basename)
|
protected File |
DefaultFileReplicator.createFile(File parent,
String name)
create the temporary file |
File |
DefaultFileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendents. |
void |
DefaultFileSystemManager.addProvider(String urlScheme,
FileProvider provider)
Registers a file system provider. |
void |
DefaultFileSystemManager.addProvider(String[] urlSchemes,
FileProvider provider)
Registers a file system provider. |
void |
DefaultFileSystemManager.setDefaultProvider(FileProvider provider)
Sets the default provider. |
void |
DefaultFileSystemManager.setFilesCache(FilesCache filesCache)
Sets the filesCache implementation used to cache files |
void |
DefaultFileSystemManager.setCacheStrategy(CacheStrategy fileCacheStrategy)
Set the cache strategy to use when dealing with file object data. |
void |
DefaultFileSystemManager.setFileObjectDecorator(Class fileObjectDecorator)
set a fileObject decorator to be used for ALL returned file objects |
void |
DefaultFileSystemManager.setFileContentInfoFactory(FileContentInfoFactory fileContentInfoFactory)
set the fileContentInfoFactory used to determine the infos of a file content. |
void |
DefaultFileSystemManager.setReplicator(FileReplicator replicator)
Sets the file replicator to use. |
void |
DefaultFileSystemManager.setTemporaryFileStore(TemporaryFileStore tempFileStore)
Sets the temporary file store to use. |
FileReplicator |
DefaultFileSystemManager.getReplicator()
Returns the file replicator. |
TemporaryFileStore |
DefaultFileSystemManager.getTemporaryFileStore()
Returns the temporary file store. |
void |
DefaultFileSystemManager.init()
Initialises this manager. |
void |
DefaultFileSystemManager.setBaseFile(FileObject baseFile)
Sets the base file to use when resolving relative URI. |
void |
DefaultFileSystemManager.setBaseFile(File baseFile)
Sets the base file to use when resolving relative URI. |
FileObject |
DefaultFileSystemManager.getBaseFile()
Returns the base file used to resolve relative URI. |
FileObject |
DefaultFileSystemManager.resolveFile(String uri)
Locates a file by URI. |
FileObject |
DefaultFileSystemManager.resolveFile(String uri,
FileSystemOptions fileSystemOptions)
Locate a file by URI, use the FileSystemOptions for file-system creation |
FileObject |
DefaultFileSystemManager.resolveFile(File baseFile,
String uri)
Locates a file by URI. |
FileObject |
DefaultFileSystemManager.resolveFile(FileObject baseFile,
String uri)
Resolves a URI, relative to a base file. |
FileObject |
DefaultFileSystemManager.resolveFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Resolves a URI, realtive to a base file with specified FileSystem configuration |
FileName |
DefaultFileSystemManager.resolveName(FileName root,
String path)
Resolves a name, relative to the file. |
FileName |
DefaultFileSystemManager.resolveName(FileName base,
String name,
NameScope scope)
Resolves a name, relative to the root. |
FileName |
DefaultFileSystemManager.resolveURI(String uri)
resolve the uri to a filename |
FileObject |
DefaultFileSystemManager.toFileObject(File file)
Converts a local file into a FileObject . |
FileObject |
DefaultFileSystemManager.createFileSystem(String scheme,
FileObject file)
Creates a layered file system. |
FileObject |
DefaultFileSystemManager.createFileSystem(FileObject file)
Creates a layered file system. |
boolean |
DefaultFileSystemManager.canCreateFileSystem(FileObject file)
Determines if a layered file system can be created for a given file. |
FileObject |
DefaultFileSystemManager.createVirtualFileSystem(FileObject rootFile)
Creates a virtual file system. |
FileObject |
DefaultFileSystemManager.createVirtualFileSystem(String rootUri)
Creates an empty virtual file system. |
Collection |
DefaultFileSystemManager.getProviderCapabilities(String scheme)
Get the capabilities for a given scheme. |
FileSystemConfigBuilder |
DefaultFileSystemManager.getFileSystemConfigBuilder(String scheme)
Get the configuration builder for the given scheme |
void |
DefaultFileSystemManager.addOperationProvider(String scheme,
FileOperationProvider operationProvider)
Adds the specified FileOperationProvider for the specified scheme. |
void |
DefaultFileSystemManager.addOperationProvider(String[] schemes,
FileOperationProvider operationProvider)
|
FileOperationProvider[] |
DefaultFileSystemManager.getOperationProviders(String scheme)
|
void |
StandardFileSystemManager.init()
Initializes this manager. |
protected void |
StandardFileSystemManager.configurePlugins()
Scans the classpath to find any droped plugin. |
Constructors in org.apache.commons.vfs.impl that throw FileSystemException | |
VFSClassLoader(FileObject file,
FileSystemManager manager)
Constructors a new VFSClassLoader for the given file. |
|
VFSClassLoader(FileObject file,
FileSystemManager manager,
ClassLoader parent)
Constructors a new VFSClassLoader for the given file. |
|
VFSClassLoader(FileObject[] files,
FileSystemManager manager)
Constructors a new VFSClassLoader for the given files. |
|
VFSClassLoader(FileObject[] files,
FileSystemManager manager,
ClassLoader parent)
Constructors a new VFSClassLoader for the given FileObjects. |
Uses of FileSystemException in org.apache.commons.vfs.operations |
Methods in org.apache.commons.vfs.operations that throw FileSystemException | |
Class[] |
DefaultFileOperations.getOperations()
|
FileOperation |
DefaultFileOperations.getOperation(Class operationClass)
|
boolean |
DefaultFileOperations.hasOperation(Class operationClass)
|
void |
AbstractFileOperationProvider.collectOperations(Collection operationsList,
FileObject file)
Gather available operations for the specified FileObject and put them into specified operationsList. |
protected abstract void |
AbstractFileOperationProvider.doCollectOperations(Collection availableOperations,
Collection resultList,
FileObject file)
|
FileOperation |
AbstractFileOperationProvider.getOperation(FileObject file,
Class operationClass)
|
protected abstract FileOperation |
AbstractFileOperationProvider.instantiateOperation(FileObject file,
Class operationClass)
|
protected Class |
AbstractFileOperationProvider.lookupOperation(Class operationClass)
|
protected void |
AbstractFileOperationProvider.addOperation(Class operationClass)
|
Class[] |
FileOperations.getOperations()
|
FileOperation |
FileOperations.getOperation(Class operationClass)
|
boolean |
FileOperations.hasOperation(Class operationClass)
|
void |
FileOperationProvider.collectOperations(Collection operationsList,
FileObject file)
Gather available operations for the specified FileObject and put them into specified operationsList. |
FileOperation |
FileOperationProvider.getOperation(FileObject file,
Class operationClass)
|
void |
FileOperation.process()
Performs necessary actions that are related to the concrete implementation of a FileOperation. |
Uses of FileSystemException in org.apache.commons.vfs.operations.vcs |
Methods in org.apache.commons.vfs.operations.vcs that throw FileSystemException | |
void |
VcsLogEntryHandler.handleLogEntry(VcsLogEntry entry)
|
Uses of FileSystemException in org.apache.commons.vfs.provider |
Methods in org.apache.commons.vfs.provider that throw FileSystemException | |
static FileType |
UriParser.normalisePath(StringBuffer path)
Normalises a path. |
static String |
UriParser.decode(String encodedStr)
Removes %nn encodings from a string. |
static void |
UriParser.decode(StringBuffer buffer,
int offset,
int length)
Removes %nn encodings from a string. |
static void |
UriParser.checkUriEncoding(String uri)
|
static void |
UriParser.canonicalizePath(StringBuffer buffer,
int offset,
int length,
FileNameParser fileNameParser)
|
FileName |
LayeredFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String filename)
|
protected String |
LayeredFileNameParser.extractRootName(StringBuffer uri)
Pops the root prefix off a URI, which has had the scheme removed. |
protected FileType |
DelegateFileObject.doGetType()
Determines the type of the file, returns null if the file does not exist. |
protected boolean |
DelegateFileObject.doIsReadable()
Determines if this file can be read. |
protected boolean |
DelegateFileObject.doIsWriteable()
Determines if this file can be written to. |
protected boolean |
DelegateFileObject.doIsHidden()
Determines if this file is hidden. |
void |
DelegateFileObject.close()
Close the delegated file |
FileObject |
CompositeFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI. |
FileObject |
AbstractLayeredFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions properties)
Locates a file object, by absolute URI. |
FileObject |
AbstractLayeredFileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system. |
protected abstract FileSystem |
AbstractLayeredFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system. |
String |
URLFileName.getPathQueryEncoded(String charset)
get the path encoded suitable for url like filesystem e.g. |
String |
URLFileName.getURIEncoded(String charset)
|
FileObject |
LocalFileProvider.findLocalFile(String name)
Finds a local file, from its local name. |
FileObject |
LocalFileProvider.findLocalFile(File file)
Converts from java.io.File to FileObject. |
FileName |
HostFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String filename)
|
protected HostFileNameParser.Authority |
HostFileNameParser.extractToPath(String uri,
StringBuffer name)
Extracts the scheme, userinfo, hostname and port components of a generic URI. |
protected int |
HostFileNameParser.extractPort(StringBuffer name,
String uri)
Extracts the port from a URI. |
FileName |
URLFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String filename)
|
FileName |
FileNameParser.parseUri(VfsComponentContext context,
FileName base,
String filename)
parses a String into a filename |
FileObject |
FileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI. |
FileObject |
FileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system. |
FileName |
FileProvider.parseUri(FileName root,
String uri)
|
protected void |
AbstractVfsContainer.addComponent(Object component)
Adds a sub-component to this component. |
FileObject |
AbstractFileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions properties)
Creates a layered file system. |
protected void |
AbstractFileProvider.addFileSystem(Comparable key,
FileSystem fs)
Adds a file system to those cached by this provider. |
FileName |
AbstractFileProvider.parseUri(FileName base,
String uri)
Parses an absolute URI. |
FileObject |
AbstractOriginatingFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI. |
protected FileObject |
AbstractOriginatingFileProvider.findFile(FileName name,
FileSystemOptions fileSystemOptions)
Locates a file from its parsed URI. |
protected abstract FileSystem |
AbstractOriginatingFileProvider.doCreateFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
Creates a FileSystem . |
long |
DefaultFileContent.getSize()
Returns the size of the content (in bytes). |
long |
DefaultFileContent.getLastModifiedTime()
Returns the last-modified timestamp. |
void |
DefaultFileContent.setLastModifiedTime(long modTime)
Sets the last-modified timestamp. |
Map |
DefaultFileContent.getAttributes()
Returns a read-only map of this file's attributes. |
String[] |
DefaultFileContent.getAttributeNames()
Lists the attributes of this file. |
Object |
DefaultFileContent.getAttribute(String attrName)
Gets the value of an attribute. |
void |
DefaultFileContent.setAttribute(String attrName,
Object value)
Sets the value of an attribute. |
Certificate[] |
DefaultFileContent.getCertificates()
Returns the certificates used to sign this file. |
InputStream |
DefaultFileContent.getInputStream()
Returns an input stream for reading the content. |
RandomAccessContent |
DefaultFileContent.getRandomAccessContent(RandomAccessMode mode)
Returns an input/output stream to use to read and write the content of the file in an random manner. |
OutputStream |
DefaultFileContent.getOutputStream()
Returns an output stream for writing the content. |
OutputStream |
DefaultFileContent.getOutputStream(boolean bAppend)
Returns an output stream for writing the content in append mode. |
void |
DefaultFileContent.close()
Closes all resources used by the content, including all streams, readers and writers. |
FileContentInfo |
DefaultFileContent.getContentInfo()
get the content info. e.g. content-type, content-encoding |
URL |
AbstractFileObject.getURL()
Returns a URL representation of the file. |
boolean |
AbstractFileObject.exists()
Determines if the file exists. |
FileType |
AbstractFileObject.getType()
Returns the file's type. |
boolean |
AbstractFileObject.isHidden()
Determines if this file can be read. |
boolean |
AbstractFileObject.isReadable()
Determines if this file can be read. |
boolean |
AbstractFileObject.isWriteable()
Determines if this file can be written to. |
FileObject |
AbstractFileObject.getParent()
Returns the parent of the file. |
FileObject[] |
AbstractFileObject.getChildren()
Returns the children of the file. |
FileObject |
AbstractFileObject.getChild(String name)
Returns a child of this file. |
FileObject |
AbstractFileObject.resolveFile(String name,
NameScope scope)
Returns a child by name. |
FileObject |
AbstractFileObject.resolveFile(String path)
Finds a file, relative to this file. |
boolean |
AbstractFileObject.delete()
Deletes this file. |
int |
AbstractFileObject.delete(FileSelector selector)
Deletes this file, and all children. |
void |
AbstractFileObject.createFile()
Creates this file, if it does not exist. |
void |
AbstractFileObject.createFolder()
Creates this folder, if it does not exist. |
void |
AbstractFileObject.copyFrom(FileObject file,
FileSelector selector)
Copies another file to this file. |
void |
AbstractFileObject.moveTo(FileObject destFile)
Moves (rename) the file to another one |
protected boolean |
AbstractFileObject.isSameFile(FileObject destFile)
Checks if this fileObject is the same file as destFile just with a different
name. |
protected boolean |
AbstractFileObject.doIsSameFile(FileObject destFile)
Checks if this fileObject is the same file as destFile just with a different
name. |
FileObject[] |
AbstractFileObject.findFiles(FileSelector selector)
Finds the set of matching descendents of this file, in depthwise order. |
FileContent |
AbstractFileObject.getContent()
Returns the file's content. |
void |
AbstractFileObject.refresh()
This will prepare the fileObject to get resynchronized with the underlaying filesystem if required |
void |
AbstractFileObject.close()
Closes this file, and its content. |
InputStream |
AbstractFileObject.getInputStream()
Returns an input stream to use to read the content of the file. |
RandomAccessContent |
AbstractFileObject.getRandomAccessContent(RandomAccessMode mode)
Returns an input/output stream to use to read and write the content of the file in and random manner. |
OutputStream |
AbstractFileObject.getOutputStream()
Prepares this file for writing. |
OutputStream |
AbstractFileObject.getOutputStream(boolean bAppend)
Prepares this file for writing. |
void |
AbstractFileObject.findFiles(FileSelector selector,
boolean depthwise,
List selected)
Traverses the descendents of this file, and builds a list of selected files. |
FileOperations |
AbstractFileObject.getFileOperations()
|
File |
TemporaryFileStore.allocateFile(String basename)
Allocates a new temporary file. |
File |
FileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendents. |
FileObject |
VfsComponentContext.resolveFile(FileObject baseFile,
String name,
FileSystemOptions fileSystemOptions)
Locate a file by name. |
FileObject |
VfsComponentContext.resolveFile(String name,
FileSystemOptions fileSystemOptions)
Locate a file by name. |
FileName |
VfsComponentContext.parseURI(String uri)
|
FileReplicator |
VfsComponentContext.getReplicator()
Locates a file replicator for the provider to use. |
TemporaryFileStore |
VfsComponentContext.getTemporaryFileStore()
Locates a temporary file store for the provider to use. |
FileObject |
VfsComponentContext.toFileObject(File file)
Returns a FileObject for a local file. |
String |
AbstractFileName.getPathDecoded()
|
String |
AbstractFileName.getRelativeName(FileName name)
Converts a file name to a relative name, relative to this file name. |
void |
VfsComponent.init()
Initialises the component. |
void |
AbstractVfsComponent.init()
Initialises the component. |
void |
AbstractFileSystem.init()
Initialises this component. |
Object |
AbstractFileSystem.getAttribute(String attrName)
Retrieves the attribute with the specified name. |
void |
AbstractFileSystem.setAttribute(String attrName,
Object value)
Sets the attribute with the specified name. |
FileObject |
AbstractFileSystem.getParentLayer()
Returns the parent layer if this is a layered file system. |
FileObject |
AbstractFileSystem.getRoot()
Returns the root file of this file system. |
FileObject |
AbstractFileSystem.resolveFile(String nameStr)
Finds a file in this file system. |
FileObject |
AbstractFileSystem.resolveFile(FileName name)
Finds a file in this file system. |
protected FileObject |
AbstractFileSystem.decorateFileObject(FileObject file)
|
File |
AbstractFileSystem.replicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendents. |
void |
AbstractFileSystem.addJunction(String junctionPoint,
FileObject targetFile)
Adds a junction to this file system. |
void |
AbstractFileSystem.removeJunction(String junctionPoint)
Removes a junction from this file system. |
Constructors in org.apache.commons.vfs.provider that throw FileSystemException | |
DelegateFileObject(FileName name,
AbstractFileSystem fileSystem,
FileObject file)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.bzip2 |
Methods in org.apache.commons.vfs.provider.bzip2 that throw FileSystemException | |
protected FileObject |
Bzip2FileSystem.createFile(FileName name)
|
protected FileSystem |
Bzip2FileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions)
|
Constructors in org.apache.commons.vfs.provider.bzip2 that throw FileSystemException | |
Bzip2FileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.compressed |
Methods in org.apache.commons.vfs.provider.compressed that throw FileSystemException | |
boolean |
CompressedFileFileObject.isWriteable()
Determines if this file can be written to. |
protected FileType |
CompressedFileFileObject.doGetType()
Returns the file's type. |
void |
CompressedFileFileObject.createFile()
|
void |
CompressedFileFileSystem.init()
|
protected abstract FileObject |
CompressedFileFileSystem.createFile(FileName name)
Creates a file object. |
protected FileSystem |
CompressedFileFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system. |
protected abstract FileSystem |
CompressedFileFileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions)
|
Constructors in org.apache.commons.vfs.provider.compressed that throw FileSystemException | |
CompressedFileFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.ftp |
Methods in org.apache.commons.vfs.provider.ftp that throw FileSystemException | |
protected FileSystem |
FtpFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates the filesystem. |
boolean |
FtpClient.isConnected()
|
FtpClient |
FtpFileSystem.getClient()
Creates an FTP client to use. |
protected FileObject |
FtpFileSystem.createFile(FileName name)
Creates a file object. |
void |
FtpFileObject.refresh()
|
static org.apache.commons.net.ftp.FTPClient |
FtpClientFactory.createConnection(String hostname,
int port,
char[] username,
char[] password,
String workingDirectory,
FileSystemOptions fileSystemOptions)
Creates a new connection to the server. |
Constructors in org.apache.commons.vfs.provider.ftp that throw FileSystemException | |
FtpFileObject(FileName name,
FtpFileSystem fileSystem,
FileName rootName)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.gzip |
Methods in org.apache.commons.vfs.provider.gzip that throw FileSystemException | |
protected FileObject |
GzipFileSystem.createFile(FileName name)
|
protected FileSystem |
GzipFileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions)
|
Constructors in org.apache.commons.vfs.provider.gzip that throw FileSystemException | |
GzipFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.http |
Methods in org.apache.commons.vfs.provider.http that throw FileSystemException | |
FileContentInfo |
HttpFileContentInfoFactory.create(FileContent fileContent)
|
protected FileSystem |
HttpFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates a FileSystem . |
static org.apache.commons.httpclient.HttpClient |
HttpClientFactory.createConnection(String scheme,
String hostname,
int port,
String username,
String password,
FileSystemOptions fileSystemOptions)
Creates a new connection to the server. |
Uses of FileSystemException in org.apache.commons.vfs.provider.jar |
Methods in org.apache.commons.vfs.provider.jar that throw FileSystemException | |
protected FileSystem |
JarFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system. |
protected ZipFile |
JarFileSystem.createZipFile(File file)
|
protected ZipFileObject |
JarFileSystem.createZipFileObject(FileName name,
ZipEntry entry)
|
Object |
JarFileSystem.getAttribute(String attrName)
Retrives the attribute with the specified name. |
protected ZipFile |
JarFileSystem.getZipFile()
|
Constructors in org.apache.commons.vfs.provider.jar that throw FileSystemException | |
JarFileObject(FileName name,
ZipEntry entry,
JarFileSystem fs,
boolean zipExists)
|
|
JarURLConnectionImpl(JarFileObject file,
FileContent content)
|
|
JarFileSystem(FileName rootName,
FileObject file,
FileSystemOptions fileSystemOptions)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.local |
Methods in org.apache.commons.vfs.provider.local that throw FileSystemException | |
protected boolean |
LocalFile.doIsWriteable()
Determines if this file can be written to. |
protected boolean |
LocalFile.doIsReadable()
Determines if this file can be read. |
protected long |
LocalFile.doGetLastModifiedTime()
Gets the last modified time of this file. |
protected void |
LocalFile.doSetLastModifiedTime(long modtime)
Sets the last modified time of this file. |
protected boolean |
LocalFile.doIsSameFile(FileObject destFile)
|
protected String |
GenericFileNameParser.extractRootPrefix(String uri,
StringBuffer name)
Pops the root prefix off a URI, which has had the scheme removed. |
FileObject |
DefaultLocalFileProvider.findLocalFile(String name)
Finds a local file, from its local name. |
FileObject |
DefaultLocalFileProvider.findLocalFile(File file)
Finds a local file. |
protected FileSystem |
DefaultLocalFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates the filesystem. |
protected String |
WindowsFileNameParser.extractRootPrefix(String uri,
StringBuffer name)
Pops the root prefix off a URI, which has had the scheme removed. |
protected abstract String |
LocalFileNameParser.extractRootPrefix(String uri,
StringBuffer name)
Pops the root prefix off a URI, which has had the scheme removed. |
FileName |
LocalFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String filename)
|
protected FileObject |
LocalFileSystem.createFile(FileName name)
Creates a file object. |
Constructors in org.apache.commons.vfs.provider.local that throw FileSystemException | |
LocalFile(LocalFileSystem fileSystem,
String rootFile,
FileName name)
Creates a non-root file. |
Uses of FileSystemException in org.apache.commons.vfs.provider.ram |
Methods in org.apache.commons.vfs.provider.ram that throw FileSystemException | |
protected FileSystem |
RamFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
|
void |
RamFileSystem.importTree(File file)
Import a Tree |
Uses of FileSystemException in org.apache.commons.vfs.provider.res |
Methods in org.apache.commons.vfs.provider.res that throw FileSystemException | |
FileObject |
ResourceFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI. |
Uses of FileSystemException in org.apache.commons.vfs.provider.sftp |
Methods in org.apache.commons.vfs.provider.sftp that throw FileSystemException | |
void |
SftpFileSystemConfigBuilder.setKnownHosts(FileSystemOptions opts,
File sshdir)
Set the known_hosts file. e.g. |
void |
SftpFileSystemConfigBuilder.setIdentities(FileSystemOptions opts,
File[] identities)
Set the identity files (your private key files). |
void |
SftpFileSystemConfigBuilder.setCompression(FileSystemOptions opts,
String compression)
configure the compression to use. |
void |
SftpFileSystemConfigBuilder.setStrictHostKeyChecking(FileSystemOptions opts,
String hostKeyChecking)
configure the host key checking to use. |
protected FileSystem |
SftpFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates a FileSystem . |
void |
SftpFileProvider.init()
Initialises the component. |
static com.jcraft.jsch.Session |
SftpClientFactory.createConnection(String hostname,
int port,
char[] username,
char[] password,
FileSystemOptions fileSystemOptions)
Creates a new connection to the server. |
protected FileObject |
SftpFileSystem.createFile(FileName name)
Creates a file object. |
Constructors in org.apache.commons.vfs.provider.sftp that throw FileSystemException | |
SftpFileObject(FileName name,
SftpFileSystem fileSystem)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.tar |
Methods in org.apache.commons.vfs.provider.tar that throw FileSystemException | |
boolean |
TarFileObject.isWriteable()
Determines if this file can be written to. |
void |
TarFileSystem.init()
|
InputStream |
TarFileSystem.getInputStream(org.apache.commons.vfs.provider.tar.TarEntry entry)
|
protected void |
TarFileSystem.resetTarFile()
|
protected org.apache.commons.vfs.provider.tar.TarInputStream |
TarFileSystem.getTarFile()
|
protected TarFileObject |
TarFileSystem.createTarFileObject(FileName name,
org.apache.commons.vfs.provider.tar.TarEntry entry)
|
protected org.apache.commons.vfs.provider.tar.TarInputStream |
TarFileSystem.createTarFile(File file)
|
protected FileObject |
TarFileSystem.createFile(FileName name)
Creates a file object. |
protected FileSystem |
TarFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system. |
Constructors in org.apache.commons.vfs.provider.tar that throw FileSystemException | |
TarFileObject(FileName name,
org.apache.commons.vfs.provider.tar.TarEntry entry,
TarFileSystem fs,
boolean tarExists)
|
|
TarFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.temp |
Methods in org.apache.commons.vfs.provider.temp that throw FileSystemException | |
FileObject |
TemporaryFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions properties)
Locates a file object, by absolute URI. |
Uses of FileSystemException in org.apache.commons.vfs.provider.url |
Methods in org.apache.commons.vfs.provider.url that throw FileSystemException | |
FileObject |
UrlFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI. |
protected URL |
UrlFileObject.createURL(FileName name)
|
FileName |
UrlFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String filename)
|
Uses of FileSystemException in org.apache.commons.vfs.provider.zip |
Methods in org.apache.commons.vfs.provider.zip that throw FileSystemException | |
protected FileSystem |
ZipFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system. |
boolean |
ZipFileObject.isWriteable()
Determines if this file can be written to. |
void |
ZipFileSystem.init()
|
protected ZipFile |
ZipFileSystem.getZipFile()
|
protected ZipFileObject |
ZipFileSystem.createZipFileObject(FileName name,
ZipEntry entry)
|
protected ZipFile |
ZipFileSystem.createZipFile(File file)
|
protected FileObject |
ZipFileSystem.createFile(FileName name)
Creates a file object. |
Constructors in org.apache.commons.vfs.provider.zip that throw FileSystemException | |
ZipFileObject(FileName name,
ZipEntry entry,
ZipFileSystem fs,
boolean zipExists)
|
|
ZipFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions)
|
Uses of FileSystemException in org.apache.commons.vfs.tasks |
Methods in org.apache.commons.vfs.tasks that throw FileSystemException | |
protected void |
MoveTask.handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
Handles a single source file. |
protected FileObject |
VfsTask.resolveFile(String uri)
Resolves a URI to a file, relative to the project's base directory. |
protected void |
CopyTask.handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
Handles an out-of-date file. |
protected void |
CopyTask.handleUpToDateFile(FileObject srcFile,
FileObject destFile)
Handles an up-to-date file. |
Uses of FileSystemException in org.apache.commons.vfs.util |
Methods in org.apache.commons.vfs.util that throw FileSystemException | |
void |
DelegatingFileSystemOptionsBuilder.setConfigString(FileSystemOptions fso,
String scheme,
String name,
String value)
Set a single string value. |
void |
DelegatingFileSystemOptionsBuilder.setConfigStrings(FileSystemOptions fso,
String scheme,
String name,
String[] values)
Set an array of string value. |
void |
DelegatingFileSystemOptionsBuilder.setConfigClass(FileSystemOptions fso,
String scheme,
String name,
Class className)
Set a single class value. |
void |
DelegatingFileSystemOptionsBuilder.setConfigClasses(FileSystemOptions fso,
String scheme,
String name,
Class[] classNames)
Set an array of class values. |
static AbstractFileObject |
FileObjectUtils.getAbstractFileObject(FileObject fileObject)
get access to the base object even if decorated |
static boolean |
FileObjectUtils.isInstanceOf(FileObject fileObject,
Class wantedClass)
check if the given FileObject is instance of given class argument |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |