org.jcon.store
Class FileSystemStore

java.lang.Object
  extended by org.jcon.store.FileSystemStore
All Implemented Interfaces:
StreamingStore

public class FileSystemStore
extends java.lang.Object
implements StreamingStore

A StreamingStore implementation based on files in a locally-mounted file system.

Author:
Paul Reavis

Constructor Summary
FileSystemStore()
           
FileSystemStore(java.lang.String rootDirName)
           
 
Method Summary
 java.io.File getRootDir()
           
 java.lang.String getRootDirName()
           
 java.io.Reader readerFor(java.lang.String storagePath)
          Returns an input stream for the given storage path.
 void setRootDirName(java.lang.String newName)
           
 java.io.Writer writerFor(java.lang.String storagePath)
          Since this is a read-only store, always throws a StoreException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemStore

public FileSystemStore()

FileSystemStore

public FileSystemStore(java.lang.String rootDirName)
Method Detail

readerFor

public java.io.Reader readerFor(java.lang.String storagePath)
Returns an input stream for the given storage path.

Specified by:
readerFor in interface StreamingStore

writerFor

public java.io.Writer writerFor(java.lang.String storagePath)
                         throws StoreException
Since this is a read-only store, always throws a StoreException.

Specified by:
writerFor in interface StreamingStore
Throws:
StoreException

getRootDirName

public java.lang.String getRootDirName()

setRootDirName

public void setRootDirName(java.lang.String newName)

getRootDir

public java.io.File getRootDir()