org.fcrepo.server.storage.lowlevel
Class GenericFileSystem

java.lang.Object
  extended by org.fcrepo.server.storage.lowlevel.FileSystem
      extended by org.fcrepo.server.storage.lowlevel.GenericFileSystem

public class GenericFileSystem
extends FileSystem

Version:
$Id$
Author:
Bill Niebel

Constructor Summary
GenericFileSystem(Map<String,?> configuration)
           
 
Method Summary
 void delete(File file)
           
 boolean isDirectory(File f)
           
 String[] list(File d)
           
 InputStream read(File file)
           
 void rewrite(File file, InputStream content)
           
 void write(File file, InputStream content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFileSystem

public GenericFileSystem(Map<String,?> configuration)
Method Detail

write

public final void write(File file,
                        InputStream content)
                 throws LowlevelStorageException
Specified by:
write in class FileSystem
Throws:
LowlevelStorageException

rewrite

public void rewrite(File file,
                    InputStream content)
             throws LowlevelStorageException
Specified by:
rewrite in class FileSystem
Throws:
LowlevelStorageException

read

public final InputStream read(File file)
                       throws LowlevelStorageException
Specified by:
read in class FileSystem
Throws:
LowlevelStorageException

delete

public final void delete(File file)
                  throws LowlevelStorageException
Specified by:
delete in class FileSystem
Throws:
LowlevelStorageException

list

public String[] list(File d)
Specified by:
list in class FileSystem

isDirectory

public boolean isDirectory(File f)
Specified by:
isDirectory in class FileSystem


Copyright © 2012 DuraSpace. All Rights Reserved.