@NotThreadSafe public class SwiftInputStream extends MultiRangeObjectInputStream
mClosed, mEndPos, mPos, mStream
Constructor and Description |
---|
SwiftInputStream(org.javaswift.joss.model.Account account,
String container,
String object)
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,
long position)
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)
Open 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)
account
- JOSS account with authentication credentialscontainer
- the name of container where the object residesobject
- path of the object in the containerpublic SwiftInputStream(org.javaswift.joss.model.Account account, String container, String object, long position)
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 fromprotected 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.