public class LaxHttpParser
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
LaxHttpParser()
Constructor for LaxHttpParser.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.httpclient.Header[] |
parseHeaders(java.io.InputStream is)
Deprecated.
use #parseHeaders(InputStream, String)
|
static org.apache.commons.httpclient.Header[] |
parseHeaders(java.io.InputStream is,
java.lang.String charset)
Parses headers from the given stream.
|
static java.lang.String |
readLine(java.io.InputStream inputStream)
Deprecated.
use #readLine(InputStream, String)
|
static java.lang.String |
readLine(java.io.InputStream inputStream,
java.lang.String charset)
Read up to "\n" from an (unchunked) input stream.
|
static byte[] |
readRawLine(java.io.InputStream inputStream)
Return byte array from an (unchunked) input stream.
|
public static byte[] readRawLine(java.io.InputStream inputStream)
throws java.io.IOException
null is returned.inputStream - the stream to read fromjava.io.IOException - if an I/O problem occurspublic static java.lang.String readLine(java.io.InputStream inputStream,
java.lang.String charset)
throws java.io.IOException
null is returned.inputStream - the stream to read fromcharset - charset of HTTP protocol elementsjava.io.IOException - if an I/O problem occurspublic static java.lang.String readLine(java.io.InputStream inputStream)
throws java.io.IOException
null is returnedinputStream - the stream to read fromjava.io.IOException - if an I/O problem occurspublic static org.apache.commons.httpclient.Header[] parseHeaders(java.io.InputStream is,
java.lang.String charset)
throws java.io.IOException,
org.apache.commons.httpclient.HttpException
is - the stream to read headers fromcharset - the charset to use for reading the datajava.io.IOException - 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(java.io.InputStream is)
throws java.io.IOException,
org.apache.commons.httpclient.HttpException
is - the stream to read headers fromjava.io.IOException - if an IO error occurs while reading from the streamorg.apache.commons.httpclient.HttpException - if there is an error parsing a header valueCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.