@NotThreadSafe public class SwiftInputStream extends MultiRangeObjectInputStream
mClosed, mEndPos, mPos, mStream| Constructor and Description |
|---|
SwiftInputStream(org.javaswift.joss.model.Account account,
java.lang.String container,
java.lang.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,
java.lang.String container,
java.lang.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 java.io.InputStream |
createStream(long startPos,
long endPos) |
public SwiftInputStream(org.javaswift.joss.model.Account account,
java.lang.String container,
java.lang.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,
java.lang.String container,
java.lang.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 java.io.InputStream createStream(long startPos,
long endPos)
throws java.io.IOException
createStream in class MultiRangeObjectInputStreamjava.io.IOExceptionCopyright © 2023. All Rights Reserved.