public interface ArtifactReadable
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getArtifactStream(String key)
Read the artifacts for the given key and return an input stream without truncating.
|
Boolean |
isArtifactExist(String key)
Verify the existence of the artifact for the given key.
|
TruncatedInputStreamData |
readArtifact(String key)
Read the artifacts for the given key and return an input stream.
|
TruncatedInputStreamData |
readArtifact(String key,
int kiloByteLimit)
Read the artifacts for the given key and return an input stream.
|
TruncatedInputStreamData readArtifact(String key) throws ArtifactReaderException
key - key of the artifact to downloadTruncatedInputStreamData containing input stream of the artifact and whether the input stream is
truncated or notArtifactReaderException - thrown when error on downloading artifactsTruncatedInputStreamData readArtifact(String key, int kiloByteLimit) throws ArtifactReaderException
key - key of the artifact to downloadkiloByteLimit - maximum number of kilo bytes to readTruncatedInputStreamData containing input stream of the artifact and whether the input stream is
truncated or notArtifactReaderException - thrown when error on downloading artifactsInputStream getArtifactStream(String key)
key - key of the artifact to downloadInputStream containing input stream of the artifactCopyright © 2019 WSO2. All rights reserved.