|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.metanotion.io.MountingFileSystem
public final class MountingFileSystem
FileSystem to attach other filesystems to mount points. Special considerations renaming files copying files mkdir mkdirs Also delete and createNewFile should not work in the "undelegated" section of the tree.
| Constructor Summary | |
|---|---|
MountingFileSystem()
|
|
| 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. |
void |
mount(String path,
JFileSystem fs)
|
InputStream |
openInput(File f)
Get an input stream to read a file. |
InputStream |
openJInput(File f)
Get a Java intput stream to write a file. |
OutputStream |
openJOutput(File f)
Get a Java output stream to write a file. |
RandomAccessFile |
openJRandomAccess(File f)
Get a random access to read and write 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. |
JFileSystem |
unmount(String path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MountingFileSystem()
| Method Detail |
|---|
public void addListener(FileSystemListener fsl)
FileSystem
addListener in interface FileSystemfsl - FileSystemListner to call back.
public void addListener(FileSystemListener fsl,
File root)
FileSystem
addListener in interface FileSystemfsl - FileSystemListner to call backroot - File or directory to specifically watch.
public void addListener(FileSystemListener fsl,
File root,
boolean recursive)
FileSystem
addListener in interface FileSystemfsl - 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.public void removeListener(FileSystemListener fsl)
FileSystem
removeListener in interface FileSystemfsl - FileSystemListner to remove.
public void mount(String path,
JFileSystem fs)
public JFileSystem unmount(String path)
public File getRoot()
FileSystem
getRoot in interface FileSystempublic File getFile(String url)
FileSystem
getFile in interface FileSystemurl - filename of the file or directory.
public InputStream openInput(File f)
FileSystem
openInput in interface FileSystemf - File to open for reading.
public OutputStream openOutput(File f)
FileSystem
openOutput in interface FileSystemf - File to open for writing.
public RandomAccess openRandomAccess(File f)
FileSystem
openRandomAccess in interface FileSystemf - File to open.
public InputStream openJInput(File f)
JFileSystem
openJInput in interface JFileSystemf - File to open for reading.
public OutputStream openJOutput(File f)
JFileSystem
openJOutput in interface JFileSystemf - File to open for writing.
public RandomAccessFile openJRandomAccess(File f)
JFileSystem
openJRandomAccess in interface JFileSystemf - File to open.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||