org.kite9.framework.repository
Class BasicFileRepository

java.lang.Object
  extended by org.kite9.framework.repository.BasicFileRepository
All Implemented Interfaces:
Repository

public class BasicFileRepository
extends Object
implements Repository


Constructor Summary
BasicFileRepository()
           
 
Method Summary
 void clear(String subjectId, String name)
           
protected  String getBaseDir()
           
 File prepareFileName(String id, String name, String extension, boolean createDir)
           
 InputStream retrieve(String subjectId, String name, String type)
           
 void setBaseDir(String baseDir)
           
 OutputStream store(String subjectId, String name, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicFileRepository

public BasicFileRepository()
Method Detail

retrieve

public InputStream retrieve(String subjectId,
                            String name,
                            String type)
                     throws IOException
Specified by:
retrieve in interface Repository
Throws:
IOException

store

public OutputStream store(String subjectId,
                          String name,
                          String type)
                   throws FileNotFoundException
Specified by:
store in interface Repository
Throws:
FileNotFoundException

prepareFileName

public File prepareFileName(String id,
                            String name,
                            String extension,
                            boolean createDir)

getBaseDir

protected String getBaseDir()

setBaseDir

public void setBaseDir(String baseDir)

clear

public void clear(String subjectId,
                  String name)
           throws IOException
Specified by:
clear in interface Repository
Throws:
IOException


Copyright © 2011. All Rights Reserved.