|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.mrm.api.BaseFileSystem
org.codehaus.mojo.mrm.impl.MemoryFileSystem
public class MemoryFileSystem
A file system who's structure is entirely stored in memory.
| Constructor Summary | |
|---|---|
MemoryFileSystem()
Create a new empty file system. |
|
| Method Summary | |
|---|---|
protected org.codehaus.mojo.mrm.api.Entry |
get(org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name)
|
long |
getLastModified(org.codehaus.mojo.mrm.api.DirectoryEntry entry)
|
org.codehaus.mojo.mrm.api.Entry[] |
listEntries(org.codehaus.mojo.mrm.api.DirectoryEntry directory)
|
org.codehaus.mojo.mrm.api.DirectoryEntry |
mkdir(org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name)
|
org.codehaus.mojo.mrm.api.FileEntry |
put(org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name,
InputStream content)
|
void |
remove(org.codehaus.mojo.mrm.api.Entry entry)
|
| Methods inherited from class org.codehaus.mojo.mrm.api.BaseFileSystem |
|---|
get, getRoot, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryFileSystem()
| Method Detail |
|---|
public org.codehaus.mojo.mrm.api.Entry[] listEntries(org.codehaus.mojo.mrm.api.DirectoryEntry directory)
public long getLastModified(org.codehaus.mojo.mrm.api.DirectoryEntry entry)
throws IOException
IOException
protected org.codehaus.mojo.mrm.api.Entry get(org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name)
get in class org.codehaus.mojo.mrm.api.BaseFileSystem
public org.codehaus.mojo.mrm.api.DirectoryEntry mkdir(org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name)
mkdir in interface org.codehaus.mojo.mrm.api.FileSystemmkdir in class org.codehaus.mojo.mrm.api.BaseFileSystem
public org.codehaus.mojo.mrm.api.FileEntry put(org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name,
InputStream content)
throws IOException
put in interface org.codehaus.mojo.mrm.api.FileSystemput in class org.codehaus.mojo.mrm.api.BaseFileSystemIOExceptionpublic void remove(org.codehaus.mojo.mrm.api.Entry entry)
remove in interface org.codehaus.mojo.mrm.api.FileSystemremove in class org.codehaus.mojo.mrm.api.BaseFileSystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||