|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.utils.VersionRetriever
public class VersionRetriever
Once persisted the versions of a resource will be written as a byte stream and it is often not so useful to be accessed in such a format. This class is able to read through the stream and output a list of versions.
This class works hand in hand with the version input stream, where the version input stream persists data to the database, and the version retriever fetches persisted versions from the database.
VersionInputStream
Constructor Summary | |
---|---|
VersionRetriever(java.io.InputStream inputStream)
Creates a version retriever from the given input stream. |
Method Summary | |
---|---|
long |
getVersion(int versionIndex)
Method to fetch the version at the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionRetriever(java.io.InputStream inputStream)
inputStream
- a stream of versions as bytes.Method Detail |
---|
public long getVersion(int versionIndex) throws RegistryException
versionIndex
- the version index.
RegistryException
- if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |