org.jicarilla.io
Class FilesystemImpl

java.lang.Object
  extended byorg.jicarilla.io.FilesystemImpl
All Implemented Interfaces:
Filesystem

public class FilesystemImpl
extends java.lang.Object
implements Filesystem

Version:
$Id: FilesystemImpl.java,v 1.3 2004/01/11 12:34:23 lsimons Exp $
Author:
Leo Simons

Field Summary
protected  java.util.Map m_openFiles
           
protected  java.io.File m_rootDirectory
           
 
Constructor Summary
FilesystemImpl(java.lang.String rootDirectory)
           
 
Method Summary
 java.nio.channels.ReadableByteChannel getFile(java.lang.String relativePath)
           
protected  java.util.Map getOpenFiles()
           
protected  java.io.File getRootDirectory()
           
 void returnFile(java.nio.channels.ReadableByteChannel channel)
           
protected  void setOpenFiles(java.util.Map openFiles)
           
protected  void setRootDirectory(java.io.File root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_rootDirectory

protected java.io.File m_rootDirectory

m_openFiles

protected java.util.Map m_openFiles
Constructor Detail

FilesystemImpl

public FilesystemImpl(java.lang.String rootDirectory)
Method Detail

getRootDirectory

protected java.io.File getRootDirectory()

setRootDirectory

protected void setRootDirectory(java.io.File root)

getOpenFiles

protected java.util.Map getOpenFiles()

setOpenFiles

protected void setOpenFiles(java.util.Map openFiles)

getFile

public java.nio.channels.ReadableByteChannel getFile(java.lang.String relativePath)
                                              throws java.io.FileNotFoundException
Specified by:
getFile in interface Filesystem
Throws:
java.io.FileNotFoundException

returnFile

public void returnFile(java.nio.channels.ReadableByteChannel channel)
Specified by:
returnFile in interface Filesystem


Copyright © 2004 Leo Simons. All Rights Reserved.