|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
fedora.localservices.saxon.HttpInputStream
public class HttpInputStream
An InputStream from an HttpMethod. When this InputStream is close()d, the underlying http connection is automatically released.
| Constructor Summary | |
|---|---|
HttpInputStream(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method,
java.lang.String url)
|
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
Release the underlying http connection and close the InputStream. |
void |
finalize()
Automatically close on garbage collection. |
java.lang.String |
getMethodName()
Get the http method name (GET or POST). |
org.apache.commons.httpclient.Header |
getResponseHeader(java.lang.String name)
Get a header value. |
int |
getStatusCode()
Get the http status code. |
java.lang.String |
getStatusText()
Get the "reason phrase" associated with the status code. |
java.lang.String |
getURL()
Get the original URL of the http request this InputStream is based on. |
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpInputStream(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method,
java.lang.String url)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getMethodName()
public java.lang.String getURL()
public int getStatusCode()
public java.lang.String getStatusText()
public org.apache.commons.httpclient.Header getResponseHeader(java.lang.String name)
public void finalize()
finalize in class java.lang.Object
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOException
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStream
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStream
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||