|
||||||||||
| 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.DiskFileSystem
public class DiskFileSystem
A file system hosted from a local directory.
| Constructor Summary | |
|---|---|
DiskFileSystem(File root)
Creates a new read-only instance. |
|
DiskFileSystem(File root,
boolean readOnly)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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, get, getRoot, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskFileSystem(File root,
boolean readOnly)
root - the root of the file system.readOnly - true if the file system is to be read-onlypublic DiskFileSystem(File root)
root - the root of the file system.| 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
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 | |||||||||