|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StructuredStore
A simple structured storage with a flat top-level directory.
Substores can be added to an existing storage using createSubStore(String)
,
and accessed later using openSubStore(String)
.
Method Summary | |
---|---|
void |
close()
Closes the store. |
SubStoreWriter |
createSubStore(String name)
Create a new sub-store with the specified name. |
void |
delete()
Deletes the storage completely (implies close() first) |
String |
getSystemId()
Gets the path, URI, or other unique identifier for this store |
String |
getUserVersion()
Gets the user version (if any) set by setUserVersion(String) . |
SubStoreReader |
openSubStore(String name)
Opens a pre-existing sub-store for read (or write). |
void |
setUserVersion(String ver)
Sets a user-defined version number for the file. |
Method Detail |
---|
SubStoreWriter createSubStore(String name) throws IOException
name
- Name of the sub-file to create. Must not exist.
IOException
SubStoreReader openSubStore(String name) throws IOException
name
- Name of pre-existing sub-store to open.
IOException
String getSystemId()
void setUserVersion(String ver) throws IOException
getUserVersion()
.
ver
- The version number to set.
IOException
String getUserVersion()
setUserVersion(String)
.
void close() throws IOException
IOException
void delete() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |