public class LaxHttpParser extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
LaxHttpParser()
Constructor for LaxHttpParser.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.httpclient.Header[] |
parseHeaders(InputStream is)
Deprecated.
use #parseHeaders(InputStream, String)
|
static org.apache.commons.httpclient.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.
|
public static byte[] readRawLine(InputStream inputStream) throws IOException
null is returned.inputStream - the stream to read fromIOException - if an I/O problem occurspublic static String readLine(InputStream inputStream, String charset) throws IOException
null is returned.inputStream - the stream to read fromcharset - charset of HTTP protocol elementsIOException - if an I/O problem occurspublic static String readLine(InputStream inputStream) throws IOException
null is returnedinputStream - the stream to read fromIOException - if an I/O problem occurspublic static org.apache.commons.httpclient.Header[] parseHeaders(InputStream is, String charset) throws IOException, org.apache.commons.httpclient.HttpException
is - the stream to read headers fromcharset - the charset to use for reading the dataIOException - if an IO error occurs while reading from the streamorg.apache.commons.httpclient.HttpException - if there is an error parsing a header valuepublic static org.apache.commons.httpclient.Header[] parseHeaders(InputStream is) throws IOException, org.apache.commons.httpclient.HttpException
is - the stream to read headers fromIOException - if an IO error occurs while reading from the streamorg.apache.commons.httpclient.HttpException - if there is an error parsing a header valueCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.