com.amazonaws.services.s3.internal

## クラス RepeatableInputStream

- java.lang.Object
- - java.io.InputStream
  - - com.amazonaws.services.s3.internal.RepeatableInputStream

- すべての実装されたインタフェース:
    java.io.Closeable, java.lang.AutoCloseable

      public class RepeatableInputStream
      extends java.io.InputStream

  A repeatable input stream wrapper for any input stream. This input stream relies on buffered data to repeat, and can therefore only be repeated when less data has been read than this buffer can hold.

  Note: Always use a `RepeatableFileInputStream` instead of this class if you are sourcing data from a file, as the file-based repeatable input stream can be repeated without any limitations.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `RepeatableInputStream(java.io.InputStream inputStream, int bufferSize)` Creates a repeatable input stream based on another input stream.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `int` | `available()`
    `void` | `close()`
    `java.io.InputStream` | `getWrappedInputStream()`
    `void` | `mark(int readlimit)` This method can only be used while less data has been read from the input stream than fits into the buffer.
    `boolean` | `markSupported()`
    `int` | `read()`
    `int` | `read(byte[] out, int outOffset, int outLength)`
    `void` | `reset()` Resets the input stream to the beginning by pointing the buffer offset to the beginning of the available data buffer.

    - ### クラスから継承されたメソッド java.io.InputStream

      `read, skip`

    - ### クラスから継承されたメソッド java.lang.Object

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

- - ### コンストラクタの詳細

    - #### RepeatableInputStream

          public RepeatableInputStream(java.io.InputStream inputStream,
                               int bufferSize)

      Creates a repeatable input stream based on another input stream.
      パラメータ:
        `inputStream` - The input stream to wrap. The data read from the wrapped input stream is buffered as it is read, up to the buffer limit specified.
        `bufferSize` - The number of bytes buffered by this class.

  - ### メソッドの詳細

    - #### reset

          public void reset()
                     throws java.io.IOException

      Resets the input stream to the beginning by pointing the buffer offset to the beginning of the available data buffer.
      オーバーライド:
        `reset` クラス内 `java.io.InputStream`
      例外:
        `java.io.IOException` - When the available buffer size has been exceeded, in which case the input stream data cannot be repeated.

    - #### markSupported

          public boolean markSupported()

      オーバーライド:
        `markSupported` クラス内 `java.io.InputStream`
      関連項目:
        `InputStream.markSupported()`

    - #### mark

          public void mark(int readlimit)

      This method can only be used while less data has been read from the input stream than fits into the buffer. The readLimit parameter is ignored entirely.
      オーバーライド:
        `mark` クラス内 `java.io.InputStream`

    - #### available

          public int available()
                        throws java.io.IOException

      オーバーライド:
        `available` クラス内 `java.io.InputStream`
      例外:
        `java.io.IOException`
      関連項目:
        `InputStream.available()`

    - #### close

          public void close()
                     throws java.io.IOException

      定義:
        `close` インタフェース内 `java.io.Closeable`
      定義:
        `close` インタフェース内 `java.lang.AutoCloseable`
      オーバーライド:
        `close` クラス内 `java.io.InputStream`
      例外:
        `java.io.IOException`
      関連項目:
        `InputStream.close()`

    - #### read

          public int read(byte[] out,
                 int outOffset,
                 int outLength)
                   throws java.io.IOException

      オーバーライド:
        `read` クラス内 `java.io.InputStream`
      例外:
        `java.io.IOException`
      関連項目:
        `InputStream.read(byte[], int, int)`

    - #### read

          public int read()
                   throws java.io.IOException

      定義:
        `read` クラス内 `java.io.InputStream`
      例外:
        `java.io.IOException`
      関連項目:
        `InputStream.read()`

    - #### getWrappedInputStream

          public java.io.InputStream getWrappedInputStream()