|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.metanotion.io.JFileSystemAdapter
public final class JFileSystemAdapter
Implementation of JFileSystem that lets you treat a FileSystem as a JFileSystem.
| Constructor Summary | |
|---|---|
JFileSystemAdapter(FileSystem fs)
|
|
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFileSystemAdapter(FileSystem fs)
| Method Detail |
|---|
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.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||