类 InputSubstream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.tencent.cos.xml.crypto.SdkFilterInputStream
-
- com.tencent.cos.xml.crypto.InputSubstream
-
- 所有已实现的接口:
Releasable,java.io.Closeable,java.lang.AutoCloseable
public final class InputSubstream extends SdkFilterInputStream
Filtered input stream implementation that exposes a range of an input stream as a new input stream.
-
-
构造器概要
构造器 构造器 说明 InputSubstream(java.io.InputStream in, long offset, long length, boolean closeSourceStream)Constructs a new InputSubstream so that when callers start reading from this stream they'll start at the specified offset in the real stream and after they've read the specified length, this stream will look empty.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intavailable()voidclose()voidmark(int readlimit)intread()intread(byte[] b, int off, int len)voidreset()-
从类继承的方法 com.tencent.cos.xml.crypto.SdkFilterInputStream
abort, abortIfNeeded, isAborted, markSupported, release, skip
-
-
-
-
构造器详细资料
-
InputSubstream
public InputSubstream(java.io.InputStream in, long offset, long length, boolean closeSourceStream)Constructs a new InputSubstream so that when callers start reading from this stream they'll start at the specified offset in the real stream and after they've read the specified length, this stream will look empty.- 参数:
in- The input stream to wrap.offset- The offset, in bytes, into the specified input stream at which to start reading data.length- The length, in bytes, of the specified input stream to return through this stream.closeSourceStream- True if the wrapped InputStream should be closed when this InputSubstream is closed.
-
-
方法详细资料
-
read
public int read() throws java.io.IOException- 覆盖:
read在类中SdkFilterInputStream- 抛出:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- 覆盖:
read在类中SdkFilterInputStream- 抛出:
java.io.IOException
-
mark
public void mark(int readlimit)
- 覆盖:
mark在类中SdkFilterInputStream
-
reset
public void reset() throws java.io.IOException- 覆盖:
reset在类中SdkFilterInputStream- 抛出:
java.io.IOException
-
close
public void close() throws java.io.IOException- 指定者:
close在接口中java.lang.AutoCloseable- 指定者:
close在接口中java.io.Closeable- 覆盖:
close在类中SdkFilterInputStream- 抛出:
java.io.IOException
-
available
public int available() throws java.io.IOException- 覆盖:
available在类中SdkFilterInputStream- 抛出:
java.io.IOException
-
-