com.aliyun.oss.crypto

## 类 RenewableCipherInputStream

- java.lang.Object
- - java.io.InputStream
  - - java.io.FilterInputStream
    - - com.aliyun.oss.crypto.SdkFilterInputStream
      - - com.aliyun.oss.crypto.CipherInputStream
        - - com.aliyun.oss.crypto.RenewableCipherInputStream

- 所有已实现的接口:
    Closeable, AutoCloseable

      public final class RenewableCipherInputStream
      extends CipherInputStream

  A specific kind of `CipherInputStream` that supports partial mark-and-reset in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).

- - ### 字段概要

    - ### 从类继承的字段 java.io.FilterInputStream

      `in`

  - ### 构造器概要

    构造器
    构造器和说明
    `RenewableCipherInputStream(InputStream is, CryptoCipher cryptoCipher)`
    `RenewableCipherInputStream(InputStream is, CryptoCipher c, int buffsize)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `mark(int readlimit)` Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
    `boolean` | `markSupported()` Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
    `int` | `read()`
    `int` | `read(byte[] b)`
    `int` | `read(byte[] b, int off, int len)`
    `void` | `reset()` Resets back to the very beginning of the stream.
    `long` | `skip(long n)` Note: This implementation will only skip up to the end of the buffered data, potentially skipping 0 bytes.

    - ### 从类继承的方法 com.aliyun.oss.crypto.CipherInputStream

      `available, close`

    - ### 从类继承的方法 com.aliyun.oss.crypto.SdkFilterInputStream

      `abort, abortIfNeeded, getDelegateStream, isAborted, release`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### RenewableCipherInputStream

          public RenewableCipherInputStream(InputStream is,
                                    CryptoCipher cryptoCipher)

    - #### RenewableCipherInputStream

          public RenewableCipherInputStream(InputStream is,
                                    CryptoCipher c,
                                    int buffsize)

  - ### 方法详细资料

    - #### markSupported

          public boolean markSupported()

      Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
      覆盖:
        `markSupported` 在类中 `CipherInputStream`

    - #### mark

          public void mark(int readlimit)

      Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
      覆盖:
        `mark` 在类中 `CipherInputStream`
      抛出:
        `UnsupportedOperationException` - if mark is called after this stream has been accessed.

    - #### reset

          public void reset()
                     throws IOException

      Resets back to the very beginning of the stream.

      Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).

      覆盖:
        `reset` 在类中 `CipherInputStream`
      抛出:
        `IOException`

    - #### read

          public int read()
                   throws IOException

      覆盖:
        `read` 在类中 `CipherInputStream`
      抛出:
        `IOException`

    - #### read

          public int read(byte[] b)
                   throws IOException

      覆盖:
        `read` 在类中 `CipherInputStream`
      抛出:
        `IOException`

    - #### read

          public int read(byte[] b,
                 int off,
                 int len)
                   throws IOException

      覆盖:
        `read` 在类中 `CipherInputStream`
      抛出:
        `IOException`

    - #### skip

          public long skip(long n)
                    throws IOException

      从类复制的说明: `CipherInputStream`
      Note: This implementation will only skip up to the end of the buffered data, potentially skipping 0 bytes.
      覆盖:
        `skip` 在类中 `CipherInputStream`
      抛出:
        `IOException`

Copyright © 2020. All Rights Reserved.