Skip to content

Commit ff5c209

Browse files
committed
add javadoc for Apache5ResponseContent
1 parent e87f1fb commit ff5c209

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5ResponseContent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
import java.io.InputStream;
55
import org.apache.hc.core5.http.ClassicHttpResponse;
66

7+
/**
8+
* Class that wraps an {@link org.apache.hc.core5.http.HttpEntity}'s content {@link InputStream} along with the
9+
* {@link ClassicHttpResponse} that contains this entity. The main purpose is to be able to close the response
10+
* as well as the content input stream when {@link #close()} is called.
11+
*/
712
public class Apache5ResponseContent extends InputStream {
813
private final ClassicHttpResponse response;
914
private final InputStream wrappedStream;

0 commit comments

Comments
 (0)