public class VersionRetriever extends Object
VersionInputStream
Constructor and Description |
---|
VersionRetriever(InputStream inputStream)
Creates a version retriever from the given input stream.
|
Modifier and Type | Method and Description |
---|---|
long |
getVersion(int versionIndex)
Method to fetch the version at the given index.
|
public VersionRetriever(InputStream inputStream)
inputStream
- a stream of versions as bytes.public long getVersion(int versionIndex) throws RegistryException
versionIndex
- the version index.RegistryException
- if the operation failed.Copyright © 2019 WSO2 Inc. All Rights Reserved.