Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / WWW / Doc / Programmer / api / org / w3c / www / http / HttpParser.html
diff --git a/JMCR-Stable/real-world application/jigsaw/WWW/Doc/Programmer/api/org/w3c/www/http/HttpParser.html b/JMCR-Stable/real-world application/jigsaw/WWW/Doc/Programmer/api/org/w3c/www/http/HttpParser.html
new file mode 100644 (file)
index 0000000..5c7d11c
--- /dev/null
@@ -0,0 +1,631 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
+<!--NewPage-->\r
+<HTML>\r
+<HEAD>\r
+<!-- Generated by javadoc (build 1.5.0_11) on Tue Apr 10 15:02:51 UTC 2007 -->\r
+<TITLE>\r
+HttpParser\r
+</TITLE>\r
+\r
+<META NAME="keywords" CONTENT="org.w3c.www.http.HttpParser class">\r
+\r
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">\r
+\r
+<SCRIPT type="text/javascript">\r
+function windowTitle()\r
+{\r
+    parent.document.title="HttpParser";\r
+}\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+</NOSCRIPT>\r
+\r
+</HEAD>\r
+\r
+<BODY BGCOLOR="white" onload="windowTitle();">\r
+\r
+\r
+<!-- ========= START OF TOP NAVBAR ======= -->\r
+<A NAME="navbar_top"><!-- --></A>\r
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>\r
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
+<TR>\r
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
+<A NAME="navbar_top_firstrow"><!-- --></A>\r
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
+  <TR ALIGN="center" VALIGN="top">\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
+  </TR>\r
+</TABLE>\r
+</TD>\r
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
+</EM>\r
+</TD>\r
+</TR>\r
+\r
+<TR>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+&nbsp;<A HREF="../../../../org/w3c/www/http/HttpParamList.html" title="class in org.w3c.www.http"><B>PREV CLASS</B></A>&nbsp;\r
+&nbsp;<A HREF="../../../../org/w3c/www/http/HttpParserException.html" title="class in org.w3c.www.http"><B>NEXT CLASS</B></A></FONT></TD>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+  <A HREF="../../../../index.html?org/w3c/www/http/HttpParser.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
+&nbsp;<A HREF="HttpParser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
+&nbsp;<SCRIPT type="text/javascript">\r
+  <!--\r
+  if(window==top) {\r
+    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
+  }\r
+  //-->\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
+</NOSCRIPT>\r
+\r
+\r
+</FONT></TD>\r
+</TR>\r
+<TR>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
+</TR>\r
+</TABLE>\r
+<A NAME="skip-navbar_top"></A>\r
+<!-- ========= END OF TOP NAVBAR ========= -->\r
+\r
+<HR>\r
+<!-- ======== START OF CLASS DATA ======== -->\r
+<H2>\r
+<FONT SIZE="-1">\r
+org.w3c.www.http</FONT>\r
+<BR>\r
+Class HttpParser</H2>\r
+<PRE>\r
+java.lang.Object\r
+  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.w3c.www.http.HttpParser</B>\r
+</PRE>\r
+<HR>\r
+<DL>\r
+<DT><PRE>public class <B>HttpParser</B><DT>extends java.lang.Object</DL>\r
+</PRE>\r
+\r
+<P>\r
+A private class to help with the parsing.\r
+ Contains only some static method, helping to parse various byte\r
+ buffers into Java object (Yes, I am still and again trying to reduce \r
+ memory consumption).\r
+ <p>I don't know wether this sucks or not. One hand I am sparing a tremedous\r
+ amount of Strings creation, on the other end I am recoding a number of\r
+ parsers that are available on String instances.\r
+<P>\r
+\r
+<P>\r
+<HR>\r
+\r
+<P>\r
+\r
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
+\r
+<A NAME="constructor_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Constructor Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#HttpParser()">HttpParser</A></B>()</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<!-- ========== METHOD SUMMARY =========== -->\r
+\r
+<A NAME="method_summary"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
+<B>Method Summary</B></FONT></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#compare(byte[], int, int, byte[])">compare</A></B>(byte[]&nbsp;b1,\r
+        int&nbsp;o1,\r
+        int&nbsp;l1,\r
+        byte[]&nbsp;b2)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compare two byte arrays.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#compare(byte[], int, int, byte[], int, int)">compare</A></B>(byte[]&nbsp;b1,\r
+        int&nbsp;o1,\r
+        int&nbsp;l1,\r
+        byte[]&nbsp;b2,\r
+        int&nbsp;o2,\r
+        int&nbsp;l2)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compare two byte arrays.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>protected static&nbsp;void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#error(java.lang.String, java.lang.String)">error</A></B>(java.lang.String&nbsp;mth,\r
+      java.lang.String&nbsp;msg)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Emit an error.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#nextItem(byte[], org.w3c.www.http.ParseState)">nextItem</A></B>(byte[]&nbsp;buf,\r
+         org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse list of items, taking care of quotes and optional LWS.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;long</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseDate(byte[], org.w3c.www.http.ParseState)">parseDate</A></B>(byte[]&nbsp;buf,\r
+          org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the given byte array as an HTTP compliant date.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;long</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseDateOrDeltaSeconds(byte[], org.w3c.www.http.ParseState)">parseDateOrDeltaSeconds</A></B>(byte[]&nbsp;buf,\r
+                        org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;long</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseDateOrDeltaSeconds(byte[], org.w3c.www.http.ParseState, long)">parseDateOrDeltaSeconds</A></B>(byte[]&nbsp;buf,\r
+                        org.w3c.www.http.ParseState&nbsp;ps,\r
+                        long&nbsp;relto)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse a date as either a delta-second value, or a date.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;long</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseDeltaSecond(byte[], org.w3c.www.http.ParseState)">parseDeltaSecond</A></B>(byte[]&nbsp;buf,\r
+                 org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse a delta-second value.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseInt(byte[], int, org.w3c.www.http.ParseState)">parseInt</A></B>(byte[]&nbsp;buf,\r
+         int&nbsp;radix,\r
+         org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse an integer, and return an updated pointer.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseInt(byte[], org.w3c.www.http.ParseState)">parseInt</A></B>(byte[]&nbsp;buf,\r
+         org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;long</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseLong(byte[], int, org.w3c.www.http.ParseState)">parseLong</A></B>(byte[]&nbsp;buf,\r
+          int&nbsp;radix,\r
+          org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse an integer, and return an updated pointer.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;long</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseLong(byte[], org.w3c.www.http.ParseState)">parseLong</A></B>(byte[]&nbsp;buf,\r
+          org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseMonth(byte[], org.w3c.www.http.ParseState)">parseMonth</A></B>(byte[]&nbsp;buf,\r
+           org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;double</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#parseQuality(byte[], org.w3c.www.http.ParseState)">parseQuality</A></B>(byte[]&nbsp;buf,\r
+             org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;int</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#skipSpaces(byte[], org.w3c.www.http.ParseState)">skipSpaces</A></B>(byte[]&nbsp;buf,\r
+           org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Skip leading LWS, <em>not</em> including CR LF.</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static&nbsp;boolean</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../../org/w3c/www/http/HttpParser.html#unquote(byte[], org.w3c.www.http.ParseState)">unquote</A></B>(byte[]&nbsp;buf,\r
+        org.w3c.www.http.ParseState&nbsp;ps)</CODE>\r
+\r
+<BR>\r
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>\r
+</TR>\r
+</TABLE>\r
+&nbsp;\r
+<P>\r
+\r
+<!-- ========= CONSTRUCTOR DETAIL ======== -->\r
+\r
+<A NAME="constructor_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Constructor Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="HttpParser()"><!-- --></A><H3>\r
+HttpParser</H3>\r
+<PRE>\r
+public <B>HttpParser</B>()</PRE>\r
+<DL>\r
+</DL>\r
+\r
+<!-- ============ METHOD DETAIL ========== -->\r
+\r
+<A NAME="method_detail"><!-- --></A>\r
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
+<B>Method Detail</B></FONT></TH>\r
+</TR>\r
+</TABLE>\r
+\r
+<A NAME="error(java.lang.String, java.lang.String)"><!-- --></A><H3>\r
+error</H3>\r
+<PRE>\r
+protected static void <B>error</B>(java.lang.String&nbsp;mth,\r
+                            java.lang.String&nbsp;msg)\r
+                     throws <A HREF="../../../../org/w3c/www/http/HttpInvalidValueException.html" title="class in org.w3c.www.http">HttpInvalidValueException</A></PRE>\r
+<DL>\r
+<DD>Emit an error.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>mth</CODE> - The method trigerring the error.<DD><CODE>msg</CODE> - An associated message.\r
+<DT><B>Throws:</B>\r
+<DD><CODE><A HREF="../../../../org/w3c/www/http/HttpInvalidValueException.html" title="class in org.w3c.www.http">HttpInvalidValueException</A></CODE> - To indicate the error to caller.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="compare(byte[], int, int, byte[], int, int)"><!-- --></A><H3>\r
+compare</H3>\r
+<PRE>\r
+public static final int <B>compare</B>(byte[]&nbsp;b1,\r
+                                int&nbsp;o1,\r
+                                int&nbsp;l1,\r
+                                byte[]&nbsp;b2,\r
+                                int&nbsp;o2,\r
+                                int&nbsp;l2)</PRE>\r
+<DL>\r
+<DD>Compare two byte arrays.\r
+ I am not comfident about how the equality of byte arrays is performed\r
+ by other means, sorry.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>b1</CODE> - The first byte array.<DD><CODE>o1</CODE> - The offset of the bytes to compare.<DD><CODE>l1</CODE> - The number of bytes to compare.<DD><CODE>b2</CODE> - What to compare against.<DD><CODE>o2</CODE> - The offset of the bytes to compare.<DD><CODE>l2</CODE> - The length of the bytes to compare.\r
+<DT><B>Returns:</B><DD>An integer, <strong><0</strong> if b1 is less than b2,\r
+ <strong>0</strong> if equals, <strong>>0</strong>otherwise.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="compare(byte[], int, int, byte[])"><!-- --></A><H3>\r
+compare</H3>\r
+<PRE>\r
+public static final int <B>compare</B>(byte[]&nbsp;b1,\r
+                                int&nbsp;o1,\r
+                                int&nbsp;l1,\r
+                                byte[]&nbsp;b2)</PRE>\r
+<DL>\r
+<DD>Compare two byte arrays.\r
+ Short-cut version of the above version.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>b1</CODE> - The first byte array.<DD><CODE>o1</CODE> - The offset of the bytes to compare.<DD><CODE>l1</CODE> - The number of bytes to compare.<DD><CODE>b2</CODE> - What to compare against.\r
+<DT><B>Returns:</B><DD>An integer, <strong><0</strong> if b1 is less than b2,\r
+ <strong>0</strong> if equals, <strong>>0</strong>otherwise.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseInt(byte[], int, org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseInt</H3>\r
+<PRE>\r
+public static final int <B>parseInt</B>(byte[]&nbsp;buf,\r
+                                 int&nbsp;radix,\r
+                                 org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD>Parse an integer, and return an updated pointer.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseInt(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseInt</H3>\r
+<PRE>\r
+public static final int <B>parseInt</B>(byte[]&nbsp;buf,\r
+                                 org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseLong(byte[], int, org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseLong</H3>\r
+<PRE>\r
+public static final long <B>parseLong</B>(byte[]&nbsp;buf,\r
+                                   int&nbsp;radix,\r
+                                   org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD>Parse an integer, and return an updated pointer.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseLong(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseLong</H3>\r
+<PRE>\r
+public static final long <B>parseLong</B>(byte[]&nbsp;buf,\r
+                                   org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="unquote(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+unquote</H3>\r
+<PRE>\r
+public static boolean <B>unquote</B>(byte[]&nbsp;buf,\r
+                              org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="skipSpaces(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+skipSpaces</H3>\r
+<PRE>\r
+public static final int <B>skipSpaces</B>(byte[]&nbsp;buf,\r
+                                   org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD>Skip leading LWS, <em>not</em> including CR LF.\r
+ Update the input offset, <em>after</em> any leading space.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>buf</CODE> - The buffer to be parsed.<DD><CODE>ptr</CODE> - The buffer pointer to be updated on return.\r
+<DT><B>Returns:</B><DD>The potentially advanced buffer input offset.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="nextItem(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+nextItem</H3>\r
+<PRE>\r
+public static final int <B>nextItem</B>(byte[]&nbsp;buf,\r
+                                 org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD>Parse list of items, taking care of quotes and optional LWS.\r
+ The output offset points to the <em>next</em> element of the list.\r
+<P>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseMonth(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseMonth</H3>\r
+<PRE>\r
+public static int <B>parseMonth</B>(byte[]&nbsp;buf,\r
+                             org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseDeltaSecond(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseDeltaSecond</H3>\r
+<PRE>\r
+public static long <B>parseDeltaSecond</B>(byte[]&nbsp;buf,\r
+                                    org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD>Parse a delta-second value.\r
+<P>\r
+<DD><DL>\r
+\r
+<DT><B>Returns:</B><DD>A long giving the date at which to retry as a number of\r
+ milliseconds since Java epoch.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseDate(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseDate</H3>\r
+<PRE>\r
+public static long <B>parseDate</B>(byte[]&nbsp;buf,\r
+                             org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD>Parse the given byte array as an HTTP compliant date.\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>buf</CODE> - The byte buffer to parse.<DD><CODE>sp</CODE> - The current parsing state.\r
+<DT><B>Returns:</B><DD>A long giving the date as a number of milliseconds since epoch.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseDateOrDeltaSeconds(byte[], org.w3c.www.http.ParseState, long)"><!-- --></A><H3>\r
+parseDateOrDeltaSeconds</H3>\r
+<PRE>\r
+public static long <B>parseDateOrDeltaSeconds</B>(byte[]&nbsp;buf,\r
+                                           org.w3c.www.http.ParseState&nbsp;ps,\r
+                                           long&nbsp;relto)</PRE>\r
+<DL>\r
+<DD>Parse a date as either a delta-second value, or a date.\r
+ In case of delta seconds, we use the current time (except if one\r
+ is provided), to compute the date.\r
+<P>\r
+<DD><DL>\r
+\r
+<DT><B>Returns:</B><DD>A date encoded as the number of millisconds since Java epoch.</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseDateOrDeltaSeconds(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseDateOrDeltaSeconds</H3>\r
+<PRE>\r
+public static long <B>parseDateOrDeltaSeconds</B>(byte[]&nbsp;buf,\r
+                                           org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="parseQuality(byte[], org.w3c.www.http.ParseState)"><!-- --></A><H3>\r
+parseQuality</H3>\r
+<PRE>\r
+public static double <B>parseQuality</B>(byte[]&nbsp;buf,\r
+                                  org.w3c.www.http.ParseState&nbsp;ps)</PRE>\r
+<DL>\r
+<DD><DL>\r
+</DL>\r
+</DD>\r
+</DL>\r
+<!-- ========= END OF CLASS DATA ========= -->\r
+<HR>\r
+\r
+\r
+<!-- ======= START OF BOTTOM NAVBAR ====== -->\r
+<A NAME="navbar_bottom"><!-- --></A>\r
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>\r
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
+<TR>\r
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
+<A NAME="navbar_bottom_firstrow"><!-- --></A>\r
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
+  <TR ALIGN="center" VALIGN="top">\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
+  </TR>\r
+</TABLE>\r
+</TD>\r
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
+</EM>\r
+</TD>\r
+</TR>\r
+\r
+<TR>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+&nbsp;<A HREF="../../../../org/w3c/www/http/HttpParamList.html" title="class in org.w3c.www.http"><B>PREV CLASS</B></A>&nbsp;\r
+&nbsp;<A HREF="../../../../org/w3c/www/http/HttpParserException.html" title="class in org.w3c.www.http"><B>NEXT CLASS</B></A></FONT></TD>\r
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
+  <A HREF="../../../../index.html?org/w3c/www/http/HttpParser.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
+&nbsp;<A HREF="HttpParser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
+&nbsp;<SCRIPT type="text/javascript">\r
+  <!--\r
+  if(window==top) {\r
+    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
+  }\r
+  //-->\r
+</SCRIPT>\r
+<NOSCRIPT>\r
+  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
+</NOSCRIPT>\r
+\r
+\r
+</FONT></TD>\r
+</TR>\r
+<TR>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
+DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
+</TR>\r
+</TABLE>\r
+<A NAME="skip-navbar_bottom"></A>\r
+<!-- ======== END OF BOTTOM NAVBAR ======= -->\r
+\r
+<HR>\r
+\r
+</BODY>\r
+</HTML>\r