FileSystemImpl
public interface IAbstractFileSystem
Implementations of this interface serve to hold components and component resources
organized in a folder style structure where the root level contains modules
(or projects) and the second level contains component folders containing a
properties file resource z.properties
or direct component definitions
in the form of .properties
file resources.
File resources are provided via instances of AbstractFile
.
All names for files are absolute. Paths do not start with "/" but paths are separated by "/". The root folder is hence named "", rather than "/"
Modifier and Type | Method | Description |
---|---|---|
boolean |
exists(java.lang.String name) |
Check whether a file exists.
|
java.io.InputStream |
getInputStream(java.lang.String name) |
Retrieve the named resource as InputStream
|
java.io.File |
getRoot() |
Returns the root folder
|
java.util.Iterator<AbstractFile> |
iterate(java.lang.String name,
int depth) |
Iterate over files under another file, i.e.
|
java.util.List<AbstractFile> |
list(java.lang.String name,
int depth) |
list files under another file, i.e.
|
java.io.File getRoot()
boolean exists(java.lang.String name) throws java.io.IOException
name
- true
if the named file exists, false
otherwise.java.io.IOException
java.io.InputStream getInputStream(java.lang.String name) throws java.io.IOException
java.io.IOException
java.util.List<AbstractFile> list(java.lang.String name, int depth) throws java.io.IOException
java.io.IOException
java.util.Iterator<AbstractFile> iterate(java.lang.String name, int depth) throws java.io.IOException
java.io.IOException