org.fcrepo.server.storage.lowlevel
Class FileSystem

java.lang.Object
  extended by org.fcrepo.server.storage.lowlevel.FileSystem
Direct Known Subclasses:
GenericFileSystem

public abstract class FileSystem
extends Object

Version:
$Id$
Author:
Bill Niebel

Constructor Summary
FileSystem(Map<String,?> configuration)
           
 
Method Summary
abstract  void delete(File file)
           
abstract  boolean isDirectory(File file)
           
abstract  String[] list(File directory)
           
abstract  InputStream read(File file)
           
abstract  void rewrite(File file, InputStream content)
           
abstract  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

FileSystem

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

read

public abstract InputStream read(File file)
                          throws LowlevelStorageException
Throws:
LowlevelStorageException

write

public abstract void write(File file,
                           InputStream content)
                    throws LowlevelStorageException
Throws:
LowlevelStorageException

rewrite

public abstract void rewrite(File file,
                             InputStream content)
                      throws LowlevelStorageException
Throws:
LowlevelStorageException

delete

public abstract void delete(File file)
                     throws LowlevelStorageException
Throws:
LowlevelStorageException

list

public abstract String[] list(File directory)

isDirectory

public abstract boolean isDirectory(File file)


Copyright © 2011 DuraSpace. All Rights Reserved.