Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » [javadoc | source]
org.apache.commons.httpclient
public class: HttpParser [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.HttpParser
A utility class for parsing http header values according to RFC-2616 Section 4 and 19.3.
Method from org.apache.commons.httpclient.HttpParser Summary:
parseHeaders,   parseHeaders,   readLine,   readLine,   readRawLine
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.HttpParser Detail:
 public static Header[] parseHeaders(InputStream is) throws IOException, HttpException 
Deprecated! use - #parseHeaders(InputStream, String)

    Parses headers from the given stream. Headers with the same name are not combined.
 public static Header[] parseHeaders(InputStream is,
    String charset) throws IOException, HttpException 
    Parses headers from the given stream. Headers with the same name are not combined.
 public static String readLine(InputStream inputStream) throws IOException 
Deprecated! use - #readLine(InputStream, String)

    Read up to "\n" from an (unchunked) input stream. If the stream ends before the line terminator is found, the last part of the string will still be returned. If no input data available, null is returned
 public static String readLine(InputStream inputStream,
    String charset) throws IOException 
    Read up to "\n" from an (unchunked) input stream. If the stream ends before the line terminator is found, the last part of the string will still be returned. If no input data available, null is returned.
 public static byte[] readRawLine(InputStream inputStream) throws IOException 
    Return byte array from an (unchunked) input stream. Stop reading when "\n" terminator encountered If the stream ends before the line terminator is found, the last part of the string will still be returned. If no input data available, null is returned.