com.amazonaws.util
Class ServiceClientHolderInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by com.amazonaws.internal.SdkFilterInputStream
              extended by com.amazonaws.util.ServiceClientHolderInputStream
All Implemented Interfaces:
com.amazonaws.internal.MetricAware, java.io.Closeable

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.


Constructor Summary
ServiceClientHolderInputStream(java.io.InputStream in, AmazonWebServiceClient client)
           
 
Method Summary
 
Methods inherited from class com.amazonaws.internal.SdkFilterInputStream
available, close, isMetricActivated, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceClientHolderInputStream

public ServiceClientHolderInputStream(java.io.InputStream in,
                                      AmazonWebServiceClient client)


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.