public class AdjustedRangeInputStream extends InputStream
构造器和说明 |
---|
AdjustedRangeInputStream(InputStream objectContents,
long rangeBeginning,
long rangeEnd)
Creates a new DecryptedContentsInputStream object.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
abortIfNeeded()
Aborts the inputstream operation if thread is interrupted.
|
int |
available() |
void |
close() |
InputStream |
getWrappedInputStream() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
mark, markSupported, read, reset, skip
public AdjustedRangeInputStream(InputStream objectContents, long rangeBeginning, long rangeEnd) throws IOException
objectContents
- The input stream containing the object contents retrieved from OSSrangeBeginning
- 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.protected final void abortIfNeeded()
ClientException
- with ClientErrorCode INPUTSTREAM_READING_ABORTED if thread aborted.public int read() throws IOException
read
在类中 InputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
在类中 InputStream
IOException
public int available() throws IOException
available
在类中 InputStream
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 InputStream
IOException
public InputStream getWrappedInputStream()
Copyright © 2020. All Rights Reserved.