|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractFileSystem
org.apache.commons.vfs.provider.ram.RamFileSystem
public class RamFileSystem
A RAM File System
| Field Summary | |
|---|---|
private java.util.Map |
cache
Cache of RAM File Data |
| Constructor Summary | |
|---|---|
protected |
RamFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
|
| Method Summary | |
|---|---|
protected void |
addCapabilities(java.util.Collection caps)
Adds the capabilities of this file system. |
void |
attach(RamFileObject fo)
|
void |
close()
Close the RAMFileSystem |
protected FileObject |
createFile(FileName name)
Creates a file object. |
(package private) void |
delete(RamFileObject file)
Delete a file |
void |
importTree(java.io.File file)
Import a Tree |
(package private) java.lang.String[] |
listChildren(FileName name)
|
(package private) void |
rename(RamFileObject from,
RamFileObject to)
|
(package private) void |
save(RamFileObject file)
Saves a file |
(package private) int |
size()
|
(package private) void |
toRamFileObject(FileObject fo,
FileObject root)
Import the given file with the name relative to the given root |
| Methods 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, setAttribute |
| Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent |
|---|
getContext, getLogger, setContext, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map cache
| Constructor Detail |
|---|
protected RamFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
rootName - fileSystemOptions - | Method Detail |
|---|
protected FileObject createFile(FileName name)
throws java.lang.Exception
AbstractFileSystem
createFile in class AbstractFileSystemjava.lang.Exceptionprotected void addCapabilities(java.util.Collection caps)
AbstractFileSystem
addCapabilities in class AbstractFileSystemjava.lang.String[] listChildren(FileName name)
name -
void delete(RamFileObject file)
throws FileSystemException
file -
FileSystemException
void save(RamFileObject file)
throws FileSystemException
file -
FileSystemException
void rename(RamFileObject from,
RamFileObject to)
throws FileSystemException
from - to -
FileSystemExceptionpublic void attach(RamFileObject fo)
public void importTree(java.io.File file)
throws FileSystemException
file -
FileSystemException
void toRamFileObject(FileObject fo,
FileObject root)
throws FileSystemException
fo - root -
FileSystemExceptionint size()
public void close()
close in interface VfsComponentclose in class AbstractFileSystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||