Class RamFileProvider
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractVfsContainer
org.apache.commons.vfs2.provider.AbstractFileProvider
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider
org.apache.commons.vfs2.provider.ram.RamFileProvider
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileProvider,- VfsComponent
RAM File Provider.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Collection<Capability> The provider's capabilities.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected FileSystemdoCreateFileSystem(FileName name, FileSystemOptions fileSystemOptions) Creates aFileSystem.Gets the file system capabilities.Methods inherited from class org.apache.commons.vfs2.provider.AbstractOriginatingFileProviderfindFile, findFile, getFileSystemMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvideraddFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParserMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContaineraddComponent, removeComponentMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, init, setContext, setLogger
- 
Field Details- 
capabilitiesThe provider's capabilities.
 
- 
- 
Constructor Details- 
RamFileProviderpublic RamFileProvider()Constructs a new provider.
 
- 
- 
Method Details- 
doCreateFileSystemprotected FileSystem doCreateFileSystem(FileName name, FileSystemOptions fileSystemOptions) throws FileSystemException Description copied from class:AbstractOriginatingFileProviderCreates aFileSystem. If the returned FileSystem implementsVfsComponent, it will be initialized.- Specified by:
- doCreateFileSystemin class- AbstractOriginatingFileProvider
- Parameters:
- name- The name of the root file of the file system to create.
- fileSystemOptions- The FileSystem options.
- Returns:
- The FileSystem, never null.
- Throws:
- FileSystemException- if an error occurs.
 
- 
getCapabilitiesDescription copied from interface:FileProviderGets the file system capabilities.These are the same as on the file system, but available before the first file system was instantiated. - Returns:
- a Collection of the file systems Capabilities.
 
 
-