com.amazonaws.services.s3.model

## クラス S3ObjectInputStream

- java.lang.Object
- - java.io.InputStream
  - - java.io.FilterInputStream
    - - com.amazonaws.services.s3.model.S3ObjectInputStream

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

      public class S3ObjectInputStream
      extends java.io.FilterInputStream

  Input stream representing the content of an `S3Object`. In addition to the methods supplied by the `InputStream` class, `S3ObjectInputStream` supplies the abort() method, which will terminate an HTTP connection to the S3 object.

- - ### フィールドの概要

    - ### クラスから継承されたフィールド java.io.FilterInputStream

      `in`

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

    コンストラクタ
    コンストラクタと説明
    `S3ObjectInputStream(java.io.InputStream in, org.apache.http.client.methods.HttpRequestBase httpRequest)`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `void` | `abort()` Aborts the underlying http request without reading any more data and closes the stream.
    `org.apache.http.client.methods.HttpRequestBase` | `getHttpRequest()` Returns the http request from which this input stream is derived.

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

      `available, close, mark, markSupported, read, read, read, reset, skip`

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

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

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

    - #### S3ObjectInputStream

          public S3ObjectInputStream(java.io.InputStream in,
                             org.apache.http.client.methods.HttpRequestBase httpRequest)

  - ### メソッドの詳細

    - #### abort

          public void abort()
                     throws java.io.IOException

      Aborts the underlying http request without reading any more data and closes the stream.

      By default Apache `HttpClient` tries to reuse http connections by reading to the end of an attached input stream on `InputStream.close()`. This is efficient from a socket pool management perspective, but for objects with large payloads can incur significant overhead while bytes are read from s3 and discarded. It's up to clients to decide when to take the performance hit implicit in not reusing an http connection in order to not read unnecessary information from S3.

      例外:
        `java.io.IOException`
      関連項目:
        `EofSensorInputStream`

    - #### getHttpRequest

          public org.apache.http.client.methods.HttpRequestBase getHttpRequest()

      Returns the http request from which this input stream is derived.