|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
Providing full access to a repository, which includes read and write access.
Method Summary | |
---|---|
InputStream |
checkout(long version)
Checks out the version of the repository that have been passed to this method as parameter. |
boolean |
commit(InputStream data,
long fromVersion)
Commits data into the repository. |
org.apache.ace.range.SortedRangeSet |
getRange()
Determines the versions inside the repository. |
Method Detail |
---|
org.apache.ace.range.SortedRangeSet getRange() throws IOException
IOException
- If there is an error determining the current versions.boolean commit(InputStream data, long fromVersion) throws IOException, IllegalArgumentException
data
- The data to be committed.fromVersion
- The version the data is based upon.
fromVersion
is not the latest version.
IOException
- If there was a problem reading or writing the data.
IllegalArgumentException
- If the version is not greater than 0.
IllegalStateException
- If an attempt to commit was made on a non-master repository.InputStream checkout(long version) throws IOException, IllegalArgumentException
IOException
- if there is an error reading the version
IllegalArgumentException
- if the version is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |