|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AFileSystem
Abstract File System Interface. This is not meant to replace the Universes
.
I regret the necessity of this, but it would take me a long time to implement everything I need
in the universes just so I can get the kernel up.
Version History
EPG - Initial - 20 FEB 05
Field Summary | |
---|---|
static java.lang.String |
ROOT
This is the assumed mount root for any filesystem. |
Method Summary | |
---|---|
boolean |
copy(java.lang.String path,
java.io.InputStream is)
Copy an InputStream to a file designated by the path. |
boolean |
delete(java.lang.String path,
boolean recurse)
Delete a file or directory if it exists at the path given. |
java.lang.String |
describeRoot()
Describe the root to this filesystem. |
boolean |
exists(java.lang.String path)
Report if a file exists at the path given. |
boolean |
isDirectory(java.lang.String path)
Is this a directory? |
boolean |
isFile(java.lang.String path)
Is this a file? |
void |
mkdir(java.lang.String path)
Make the directory. |
java.io.InputStream |
openInputStream(java.lang.String path)
Open a file with an InputStream for input. |
java.io.OutputStream |
openOutputStream(java.lang.String path)
Open a file with an OutputStream for output |
java.util.List<java.lang.String> |
paths(java.lang.String path)
Paths within the given root path. |
long |
size(java.lang.String path)
Current size of the file. |
Field Detail |
---|
static final java.lang.String ROOT
Method Detail |
---|
java.lang.String describeRoot()
boolean exists(java.lang.String path)
path
- The path
long size(java.lang.String path)
path
- The path
boolean delete(java.lang.String path, boolean recurse) throws SystemException
path
- An absolute path to the item.recurse
- If set true, it will delete sub-directories on a directory delete, otherwise it will just delete the files.
things.common.SystemException
SystemException
boolean isFile(java.lang.String path)
path
- The path
boolean isDirectory(java.lang.String path)
path
- The path
java.util.List<java.lang.String> paths(java.lang.String path) throws SystemException
things.common.SystemException
SystemException
boolean copy(java.lang.String path, java.io.InputStream is) throws SystemException
path
- The path to the destination. If the file exists, it will be overwritten. If the path does not exist, it will be created.is
- An InputStream to the source. It should be buffered, so don't bother doing it.
things.common.SystemException
SystemException
java.io.InputStream openInputStream(java.lang.String path) throws SystemException
path
- The past to the file to open.
things.common.SystemException
SystemException
java.io.OutputStream openOutputStream(java.lang.String path) throws SystemException
path
- The past to the file to open.
things.common.SystemException
SystemException
void mkdir(java.lang.String path) throws SystemException
path
- The past to the file to open.
things.common.SystemException
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |