org.opensaml.util.resource
private static class HttpResource.ConnectionClosingInputStream extends InputStream
InputStream
returned by a HttpMethod
that closes the stream and releases the
HTTP connection when close()
is invoked.Modifier and Type | Field and Description |
---|---|
private org.apache.commons.httpclient.HttpMethod |
method
HTTP method that was invoked.
|
private InputStream |
stream
Stream owned by the given HTTP method.
|
Constructor and Description |
---|
HttpResource.ConnectionClosingInputStream(org.apache.commons.httpclient.HttpMethod httpMethod,
InputStream returnedStream)
Constructor.
|
private final org.apache.commons.httpclient.HttpMethod method
private final InputStream stream
public HttpResource.ConnectionClosingInputStream(org.apache.commons.httpclient.HttpMethod httpMethod, InputStream returnedStream)
httpMethod
- HTTP method that was invokedreturnedStream
- stream owned by the given HTTP methodpublic int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
Copyright © 1999-2013 JBoss by Red Hat. All Rights Reserved.