Package com.amazonaws.util
Class ServiceClientHolderInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.amazonaws.internal.SdkFilterInputStream
-
- com.amazonaws.util.ServiceClientHolderInputStream
-
- All Implemented Interfaces:
com.amazonaws.internal.MetricAware
,com.amazonaws.internal.Releasable
,Closeable
,AutoCloseable
public class ServiceClientHolderInputStream extends com.amazonaws.internal.SdkFilterInputStream
This wrapper input stream holds a reference to the service client. This is mainly done to avoid the AmazonWebServiceClient object being garbage collected when the client reads data from the input stream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ServiceClientHolderInputStream(InputStream in, AmazonWebServiceClient client)
-
Method Summary
-
Methods inherited from class com.amazonaws.internal.SdkFilterInputStream
abort, abortIfNeeded, available, close, isMetricActivated, mark, markSupported, read, read, release, reset, skip
-
Methods inherited from class java.io.FilterInputStream
read
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ServiceClientHolderInputStream
public ServiceClientHolderInputStream(InputStream in, AmazonWebServiceClient client)
-
-