Class HTTPResource.ConnectionClosingInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable
    Enclosing class:
    HTTPResource

    private static class HTTPResource.ConnectionClosingInputStream
    extends InputStream
    A wrapper around the entity content InputStream represented by an HttpResponse that closes the stream and the HttpResponse when close() is invoked.