Example usage for Java org.apache.commons.vfs2.impl DefaultFileSystemManager fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | init Flag, if manager is initialized (after init() and before close()). |
void | addExtensionMap(final String extension, final String scheme) Adds an filename extension mapping. |
void | addMimeTypeMap(final String mimeType, final String scheme) Adds a mime type mapping. |
void | addProvider(final String urlScheme, final FileProvider provider) Registers a file system provider. |
void | addProvider(final String[] urlSchemes, final FileProvider provider) Registers a file system provider. |
void | close() Closes the manager. |
void | freeUnusedResources() Free all resources used by unused filesystems created by this manager. |
FileReplicator | getReplicator() Returns the file replicator. |
String[] | getSchemes() Get the schemes currently available. |
boolean | hasProvider(final String scheme) Returns true if this manager has a provider for a particular scheme. |
FileObject | resolveFile(final String uri, final FileSystemOptions fileSystemOptions) Locate a file by URI, use the FileSystemOptions for file-system creation. |
FileObject | resolveFile(final File baseFile, final String uri) Resolves a URI, relative to base file. |
FileObject | resolveFile(final FileObject baseFile, final String uri) Resolves a URI, relative to a base file. |
FileObject | resolveFile(final String uri) Locates a file by URI. |
FileObject | resolveFile(final URI uri) Converts a URI into a FileObject . |
FileObject | resolveFile(final URL url) Converts a URL into a FileObject . |
FileObject | resolveFile(final FileObject baseFile, final String uri, final FileSystemOptions fileSystemOptions) Resolves a URI, relative to a base file with specified FileSystem configuration. |
void | setBaseFile(final FileObject baseFile) Sets the base file to use when resolving relative URI. |
void | setBaseFile(final File baseFile) Sets the base file to use when resolving relative URI. |
void | setCacheStrategy(final CacheStrategy fileCacheStrategy) Set the cache strategy to use when dealing with file object data. |
void | setDefaultProvider(final FileProvider provider) Sets the default provider. |
void | setFileContentInfoFactory(final FileContentInfoFactory fileContentInfoFactory) set the fileContentInfoFactory used to determine the infos of a file content. |
void | setFilesCache(final FilesCache filesCache) Sets the filesCache implementation used to cache files. |
void | setReplicator(final FileReplicator replicator) Sets the file replicator to use. |
void | setTemporaryFileStore(final TemporaryFileStore tempFileStore) Sets the temporary file store to use. |
FileObject | toFileObject(final File file) Converts a local file into a FileObject . |