Class RamFileSystem
java.lang.Object
org.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractFileSystem
org.apache.commons.vfs.provider.ram.RamFileSystem
- All Implemented Interfaces:
Serializable,FileSystem,VfsComponent
A RAM File System
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRamFileSystem(FileName rootName, FileSystemOptions fileSystemOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection caps) Adds the capabilities of this file system.voidattach(RamFileObject fo) voidclose()Close the RAMFileSystemprotected FileObjectcreateFile(FileName name) Creates a file object.voidimportTree(File file) Import a TreeMethods inherited from class org.apache.commons.vfs.provider.AbstractFileSystem
addJunction, addListener, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributeMethods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Constructor Details
-
RamFileSystem
- Parameters:
rootName-fileSystemOptions-
-
-
Method Details
-
createFile
Description copied from class:AbstractFileSystemCreates a file object. This method is called only if the requested file is not cached.- Specified by:
createFilein classAbstractFileSystem- Throws:
Exception
-
addCapabilities
Description copied from class:AbstractFileSystemAdds the capabilities of this file system.- Specified by:
addCapabilitiesin classAbstractFileSystem
-
attach
-
importTree
Import a Tree- Parameters:
file-- Throws:
FileSystemException
-
close
public void close()Close the RAMFileSystem- Specified by:
closein interfaceVfsComponent- Overrides:
closein classAbstractFileSystem
-