类 SdkFilterInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.tencent.cos.xml.crypto.SdkFilterInputStream
-
- 所有已实现的接口:
Releasable,java.io.Closeable,java.lang.AutoCloseable
public class SdkFilterInputStream extends java.io.FilterInputStream implements Releasable
Base class for COS Java SDK specificFilterInputStream.
-
-
构造器概要
构造器 限定符 构造器 说明 protectedSdkFilterInputStream(java.io.InputStream in)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidabort()Can be used to provide abortion logic prior to throwing the AbortedException.protected voidabortIfNeeded()Aborts with subclass specific abortion logic executed if needed.intavailable()voidclose()protected booleanisAborted()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b, int off, int len)voidrelease()Releases the allocated resource.voidreset()longskip(long n)
-
-
-
方法详细资料
-
abortIfNeeded
protected final void abortIfNeeded()
Aborts with subclass specific abortion logic executed if needed. Note the interrupted status of the thread is cleared by this method.
-
abort
public void abort()
Can be used to provide abortion logic prior to throwing the AbortedException. If the wrappedInputStreamis also an instance of this class, then it will also be aborted, otherwise this is a no-op.
-
isAborted
protected boolean isAborted()
-
read
public int read() throws java.io.IOException- 覆盖:
read在类中java.io.FilterInputStream- 抛出:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- 覆盖:
read在类中java.io.FilterInputStream- 抛出:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- 覆盖:
skip在类中java.io.FilterInputStream- 抛出:
java.io.IOException
-
available
public int available() throws java.io.IOException- 覆盖:
available在类中java.io.FilterInputStream- 抛出:
java.io.IOException
-
close
public void close() throws java.io.IOException- 指定者:
close在接口中java.lang.AutoCloseable- 指定者:
close在接口中java.io.Closeable- 覆盖:
close在类中java.io.FilterInputStream- 抛出:
java.io.IOException
-
mark
public void mark(int readlimit)
- 覆盖:
mark在类中java.io.FilterInputStream
-
reset
public void reset() throws java.io.IOException- 覆盖:
reset在类中java.io.FilterInputStream- 抛出:
java.io.IOException
-
markSupported
public boolean markSupported()
- 覆盖:
markSupported在类中java.io.FilterInputStream
-
release
public void release()
从接口复制的说明:ReleasableReleases the allocated resource. This method should not be called except by the caller who allocated the resource at the very top of the call stack. This allows, typically, aCloseableresource to be not unintentionally released owing to the calling of theCloseable.close()methods by implementation deep down in the call stack.For example, the creation of a
ResettableInputStreamwould entail physically opening a file. If the opened file is meant to be closed only (in a finally block) by the very same code block that created it, then it is necessary that the release method must not be called while the execution is made in other stack frames. In such case, as other stack frames may inadvertently or indirectly call the close method of the stream, the creator of the stream would need to explicitly disable the accidental closing viaResettableInputStream#disableClose(), so that the release method becomes the only way to truly close the opened file.- 指定者:
release在接口中Releasable
-
-