org.kite9.framework.repository
Class BasicFileRepository
java.lang.Object
org.kite9.framework.repository.BasicFileRepository
- All Implemented Interfaces:
- Repository
public class BasicFileRepository
- extends Object
- implements Repository
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicFileRepository
public BasicFileRepository()
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.