|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.opensaml.util.resource.HttpResource.ConnectionClosingInputStream
private static class HttpResource.ConnectionClosingInputStream
A wrapper around the InputStream
returned by a HttpMethod
that closes the stream and releases the
HTTP connection when close()
is invoked.
Field Summary | |
---|---|
private org.apache.commons.httpclient.HttpMethod |
method
HTTP method that was invoked. |
private InputStream |
stream
Stream owned by the given HTTP method. |
Constructor Summary | |
---|---|
HttpResource.ConnectionClosingInputStream(org.apache.commons.httpclient.HttpMethod httpMethod,
InputStream returnedStream)
Constructor. |
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
void |
mark(int readLimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final org.apache.commons.httpclient.HttpMethod method
private final InputStream stream
Constructor Detail |
---|
public HttpResource.ConnectionClosingInputStream(org.apache.commons.httpclient.HttpMethod httpMethod, InputStream returnedStream)
httpMethod
- HTTP method that was invokedreturnedStream
- stream owned by the given HTTP methodMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |