public class AdjustedRangeInputStream extends SdkInputStream
| 构造器和说明 |
|---|
AdjustedRangeInputStream(InputStream objectContents,
long rangeBeginning,
long rangeEnd)
Creates a new DecryptedContentsInputStream object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
close() |
protected InputStream |
getWrappedInputStream()
Returns the underlying input stream, if any, from the subclass; or null
if there is no underlying input stream.
|
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
abort, abortIfNeeded, release, shouldAbortmark, markSupported, read, reset, skippublic AdjustedRangeInputStream(InputStream objectContents, long rangeBeginning, long rangeEnd) throws IOException
objectContents - The input stream containing the object contents retrieved from COSrangeBeginning - The position of the left-most byte desired by the userrangeEnd - The position of the right-most byte desired by the userIOException - If there are errors skipping to the left-most byte desired by the user.public int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read 在类中 InputStreamIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionprotected InputStream getWrappedInputStream()
SdkInputStreamgetWrappedInputStream 在类中 SdkInputStreamCopyright © 2022. All rights reserved.