类 SdkFilterInputStream

    • 字段概要

      • 从类继承的字段 java.io.FilterInputStream

        in
    • 构造器概要

      构造器 
      限定符 构造器 说明
      protected SdkFilterInputStream​(java.io.InputStream in)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void abort()
      Can be used to provide abortion logic prior to throwing the AbortedException.
      protected void abortIfNeeded()
      Aborts with subclass specific abortion logic executed if needed.
      int available()  
      void close()  
      protected boolean isAborted()  
      void mark​(int readlimit)  
      boolean markSupported()  
      int read()  
      int read​(byte[] b, int off, int len)  
      void release()
      Releases the allocated resource.
      void reset()  
      long skip​(long n)  
      • 从类继承的方法 java.io.FilterInputStream

        read
      • 从类继承的方法 java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SdkFilterInputStream

        protected SdkFilterInputStream​(java.io.InputStream in)
    • 方法详细资料

      • 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 wrapped InputStream is 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()
        从接口复制的说明: Releasable
        Releases 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, a Closeable resource to be not unintentionally released owing to the calling of the Closeable.close() methods by implementation deep down in the call stack.

        For example, the creation of a ResettableInputStream would 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 via ResettableInputStream#disableClose(), so that the release method becomes the only way to truly close the opened file.

        指定者:
        release 在接口中 Releasable