@NotThreadSafe public class SwiftInputStream extends MultiRangeObjectInputStream
mClosed, mEndPos, mPos, mStream
Constructor and Description |
---|
SwiftInputStream(org.javaswift.joss.model.Account account,
String container,
String object,
long position,
RetryPolicy retryPolicy,
long multiRangeChunkSize)
Constructor for an input stream to an object in a Swift API based store.
|
SwiftInputStream(org.javaswift.joss.model.Account account,
String container,
String object,
RetryPolicy retryPolicy,
long multiRangeChunkSize)
Constructor for an input stream to an object in a Swift API based store.
|
Modifier and Type | Method and Description |
---|---|
protected InputStream |
createStream(long startPos,
long endPos)
Opens a new stream reading a range.
|
close, read, read, read, skip
available, mark, markSupported, reset
public SwiftInputStream(org.javaswift.joss.model.Account account, String container, String object, RetryPolicy retryPolicy, long multiRangeChunkSize)
account
- JOSS account with authentication credentialscontainer
- the name of container where the object residesobject
- path of the object in the containerretryPolicy
- retry policy in case the object does not existmultiRangeChunkSize
- the chunk size to use on this streampublic SwiftInputStream(org.javaswift.joss.model.Account account, String container, String object, long position, RetryPolicy retryPolicy, long multiRangeChunkSize)
account
- JOSS account with authentication credentialscontainer
- the name of container where the object residesobject
- path of the object in the containerposition
- the position to begin reading fromretryPolicy
- retry policy in case the object does not existmultiRangeChunkSize
- the chunk size to use on this streamprotected InputStream createStream(long startPos, long endPos) throws IOException
MultiRangeObjectInputStream
createStream
in class MultiRangeObjectInputStream
startPos
- start position in bytes (inclusive)endPos
- end position in bytes (exclusive)InputStream
IOException
Copyright © 2023. All Rights Reserved.