|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.HttpParser
public class HttpParser
A utility class for parsing http header values according to RFC-2616 Section 4 and 19.3.
| Method Summary | |
|---|---|
static Header[] |
parseHeaders(InputStream is)
Deprecated. use #parseHeaders(InputStream, String) |
static Header[] |
parseHeaders(InputStream is,
String charset)
Parses headers from the given stream. |
static String |
readLine(InputStream inputStream)
Deprecated. use #readLine(InputStream, String) |
static String |
readLine(InputStream inputStream,
String charset)
Read up to "\n" from an (unchunked) input stream. |
static byte[] |
readRawLine(InputStream inputStream)
Return byte array from an (unchunked) input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] readRawLine(InputStream inputStream)
throws IOException
null is returned.
inputStream - the stream to read from
IOException - if an I/O problem occurs
public static String readLine(InputStream inputStream,
String charset)
throws IOException
null is returned.
inputStream - the stream to read fromcharset - charset of HTTP protocol elements
IOException - if an I/O problem occurs
public static String readLine(InputStream inputStream)
throws IOException
null is returned
inputStream - the stream to read from
IOException - if an I/O problem occurs
public static Header[] parseHeaders(InputStream is,
String charset)
throws IOException,
HttpException
is - the stream to read headers fromcharset - the charset to use for reading the data
IOException - if an IO error occurs while reading from the stream
HttpException - if there is an error parsing a header value
public static Header[] parseHeaders(InputStream is)
throws IOException,
HttpException
is - the stream to read headers from
IOException - if an IO error occurs while reading from the stream
HttpException - if there is an error parsing a header value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||