|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.mrm.impl.CompositeFileSystem
public class CompositeFileSystem
A file system that is a composite of multiple file systems.
| Constructor Summary | |
|---|---|
CompositeFileSystem(org.codehaus.mojo.mrm.api.FileSystem[] delegates)
Creates a new FileSystem that will delegate to each of the supplied delegate FileSystem in turn
until a matching entry is found. |
|
| Method Summary | |
|---|---|
org.codehaus.mojo.mrm.api.Entry |
get(String path)
|
long |
getLastModified(org.codehaus.mojo.mrm.api.DirectoryEntry entry)
|
org.codehaus.mojo.mrm.api.DirectoryEntry |
getRoot()
|
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,
byte[] content)
|
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeFileSystem(org.codehaus.mojo.mrm.api.FileSystem[] delegates)
FileSystem that will delegate to each of the supplied delegate FileSystem in turn
until a matching entry is found.
delegates - the delegate FileSystems (in order of preference).| Method Detail |
|---|
public org.codehaus.mojo.mrm.api.Entry[] listEntries(org.codehaus.mojo.mrm.api.DirectoryEntry directory)
listEntries in interface org.codehaus.mojo.mrm.api.FileSystempublic org.codehaus.mojo.mrm.api.Entry get(String path)
get in interface org.codehaus.mojo.mrm.api.FileSystem
public long getLastModified(org.codehaus.mojo.mrm.api.DirectoryEntry entry)
throws IOException
getLastModified in interface org.codehaus.mojo.mrm.api.FileSystemIOExceptionpublic org.codehaus.mojo.mrm.api.DirectoryEntry getRoot()
getRoot in interface org.codehaus.mojo.mrm.api.FileSystem
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.FileSystem
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.FileSystemIOException
public org.codehaus.mojo.mrm.api.FileEntry put(org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name,
byte[] content)
throws IOException
put in interface org.codehaus.mojo.mrm.api.FileSystemIOExceptionpublic void remove(org.codehaus.mojo.mrm.api.Entry entry)
remove in interface org.codehaus.mojo.mrm.api.FileSystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||