net.metanotion.io
Interface JFileSystem

All Superinterfaces:
FileSystem
All Known Implementing Classes:
ChRootFileSystem, JavaFileSystem, JFileSystemAdapter, MountingFileSystem, RAMDiskFileSystem

public interface JFileSystem
extends FileSystem

Extension of FileSystem interface to support returning "normal" Java Input and Output Streams. This is mostly for efficiency purposes so a file system implementation with access to "underlying" streams can use those rather than wrapping them in a JInputStream only to wrap that in JavaInputStream.


Method Summary
 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.
 
Methods inherited from interface net.metanotion.io.FileSystem
addListener, addListener, addListener, getFile, getRoot, openInput, openOutput, openRandomAccess, removeListener
 

Method Detail

openJInput

InputStream openJInput(File f)
Get a Java intput stream to write a file.

Parameters:
f - File to open for reading.
Returns:
InputStream to read the file.

openJOutput

OutputStream openJOutput(File f)
Get a Java output stream to write a file.

Parameters:
f - File to open for writing.
Returns:
OutputStream to write the file.

openJRandomAccess

RandomAccessFile openJRandomAccess(File f)
Get a random access to read and write a file.

Parameters:
f - File to open.
Returns:
RandomAccessFile to read and write the file.