|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileSystem
Abstract definition of a File System Object.
| Method Summary | |
|---|---|
void |
addListener(FileSystemListener fsl)
Add a listener to this file system. |
void |
addListener(FileSystemListener fsl,
File root)
Add a listener to this file system. |
void |
addListener(FileSystemListener fsl,
File root,
boolean recursive)
Add a listener to this file system. |
File |
getFile(String url)
Get the file corresponding to a url. |
File |
getRoot()
Get the root File object of this file system. |
InputStream |
openInput(File f)
Get an input stream to read a file. |
OutputStream |
openOutput(File f)
Get an output stream to write a file. |
RandomAccess |
openRandomAccess(File f)
Open a file for reading and writing. |
void |
removeListener(FileSystemListener fsl)
Remove a listener to this file system. |
| Method Detail |
|---|
File getRoot()
File getFile(String url)
url - filename of the file or directory.
InputStream openInput(File f)
f - File to open for reading.
OutputStream openOutput(File f)
f - File to open for writing.
RandomAccess openRandomAccess(File f)
f - File to open.
void addListener(FileSystemListener fsl)
fsl - FileSystemListner to call back.
void addListener(FileSystemListener fsl,
File root)
fsl - FileSystemListner to call backroot - File or directory to specifically watch.
void addListener(FileSystemListener fsl,
File root,
boolean recursive)
fsl - FileSystemListner to call backroot - File or directory to specifically watch.recursive - If true, send events for all children of this file, if false, only events on this file.void removeListener(FileSystemListener fsl)
fsl - FileSystemListner to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||