|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataStorage
This interface defines the API of a data storage system. It is modeled after the CVS command set, but can be easily implemented using other version control system or plain file system.
| Method Summary | |
|---|---|
OutputStream |
add(String path)
Add an archive file to the data storage. |
Object |
checkout(String path)
Checkout an archive file from the storage. |
String |
commit(String path)
Commit the add change made so far. |
void |
init(String root)
Init the data storage. |
String[] |
list(String path,
boolean folder)
List the archive files or folders in an archive folder. |
String[] |
log(String path)
List versions of an archive file. |
boolean |
remove(String path)
Remove an achive file from the storage. |
boolean |
rename(String opath,
String npath)
Rename an archive file. |
boolean |
update(String path)
Update an archive folder. |
| Method Detail |
|---|
void init(String root)
throws Exception
root - the specified root path.
Exception
OutputStream add(String path)
throws IOException
path - the specified archive file path.
IOException
Object checkout(String path)
throws IOException
path - the specified archive file path.
IOException
String commit(String path)
throws IOException
path - the specified archive file path.
IOException
boolean remove(String path)
throws IOException
path - the specified archive file path.
IOException
String[] list(String path,
boolean folder)
throws IOException
path - the specified arhive folder path.folder - true to list archive folders, false
to list archive files.
IOException
boolean update(String path)
throws IOException
path - the specified archive folder path.
IOException
boolean rename(String opath,
String npath)
throws IOException
opath - the specified old archive file path.npath - the specified new archive file path.
IOException
String[] log(String path)
throws IOException
path - the specified archive file path.
IOException
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||