|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRepository
File repository interface
Nested Class Summary | |
---|---|
static interface |
IRepository.IVisitor
Visitor for repository entries |
Field Summary | |
---|---|
static int |
STORE_OK
Store code with ok result |
Method Summary | |
---|---|
java.lang.String |
add(java.lang.String basePath,
java.lang.String fileName)
Given a filename, return a valid path to store it calling getOutputStream(java.lang.String) |
java.lang.String |
addNonamed(java.lang.String basePath,
java.lang.String fileExtension)
Given a file extension, return a valid path to store it calling getOutputStream(java.lang.String) |
boolean |
exists(java.lang.String path)
Checks if 'path' points to a valid entry |
Category |
getCategory()
Gets the category of the repository |
java.io.InputStream |
getInputStream(java.lang.String path)
Returns an input channel to read contents |
java.util.Date |
getLastModified(java.lang.String path)
Returns the last lastAccessed time for the pointed entry |
java.io.OutputStream |
getOutputStream(java.lang.String path)
Returns an output channel to store contents |
void |
initialize()
Initialize the repository |
void |
remove(java.lang.String path)
Removes the stored file, given its path |
void |
setCategory(Category category)
Sets the category to the repository |
long |
size(java.lang.String path)
Gets the size of the file |
int |
store(java.io.InputStream is,
java.lang.String path)
Store an InputStream in the repository |
void |
visit(java.lang.String rootPath,
IRepository.IVisitor visitor)
Visitor pattern for the repository. |
Methods inherited from interface net.sourceforge.sconman.IXMLSerializable |
---|
deserializeXML, serializeXML |
Field Detail |
---|
static final int STORE_OK
Method Detail |
---|
boolean exists(java.lang.String path)
path
- The path to check
java.util.Date getLastModified(java.lang.String path)
path
- The path to the entry
java.io.OutputStream getOutputStream(java.lang.String path) throws java.io.IOException
path
- The path to the file
java.io.IOException
java.io.InputStream getInputStream(java.lang.String path) throws java.io.IOException
path
- The path to the file
java.io.IOException
int store(java.io.InputStream is, java.lang.String path) throws java.io.IOException
is
- The InputStreampath
- The path to the file
java.io.IOException
void remove(java.lang.String path) throws java.io.IOException
path
-
java.io.IOException
java.lang.String add(java.lang.String basePath, java.lang.String fileName) throws java.io.IOException
getOutputStream(java.lang.String)
fileName
- The file id
java.io.IOException
java.lang.String addNonamed(java.lang.String basePath, java.lang.String fileExtension) throws java.io.IOException
getOutputStream(java.lang.String)
fileExtension
- The file extension
java.io.IOException
void visit(java.lang.String rootPath, IRepository.IVisitor visitor)
rootPath
- The root path where the visits should begin atvisitor
- The visitor that will traverse the repositoryvoid initialize() throws java.io.IOException
java.io.IOException
long size(java.lang.String path)
path
- The path to the file
void setCategory(Category category)
category
- The categoryCategory getCategory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |