⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 laxuri.html

📁 用JAVA编写的,在做实验的时候留下来的,本来想删的,但是传上来,大家分享吧
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DD></DL><HR><A NAME="getPathQuery()"><!-- --></A><H3>getPathQuery</H3><PRE>public java.lang.String <B>getPathQuery</B>()                              throws org.apache.commons.httpclient.URIException</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>getPathQuery</CODE> in class <CODE>org.apache.commons.httpclient.URI</CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>org.apache.commons.httpclient.URIException</CODE></DL></DD></DL><HR><A NAME="decode(char[], java.lang.String)"><!-- --></A><H3>decode</H3><PRE>protected static java.lang.String <B>decode</B>(char[]&nbsp;component,                                         java.lang.String&nbsp;charset)                                  throws org.apache.commons.httpclient.URIException</PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE>org.apache.commons.httpclient.URIException</CODE></DL></DD></DL><HR><A NAME="decode(java.lang.String, java.lang.String)"><!-- --></A><H3>decode</H3><PRE>protected static java.lang.String <B>decode</B>(java.lang.String&nbsp;component,                                         java.lang.String&nbsp;charset)                                  throws org.apache.commons.httpclient.URIException</PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE>org.apache.commons.httpclient.URIException</CODE></DL></DD></DL><HR><A NAME="validate(char[], java.util.BitSet)"><!-- --></A><H3>validate</H3><PRE>protected boolean <B>validate</B>(char[]&nbsp;component,                           java.util.BitSet&nbsp;generous)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>validate</CODE> in class <CODE>org.apache.commons.httpclient.URI</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="validate(char[], int, int, java.util.BitSet)"><!-- --></A><H3>validate</H3><PRE>protected boolean <B>validate</B>(char[]&nbsp;component,                           int&nbsp;soffset,                           int&nbsp;eoffset,                           java.util.BitSet&nbsp;generous)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>validate</CODE> in class <CODE>org.apache.commons.httpclient.URI</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="lax(java.util.BitSet)"><!-- --></A><H3>lax</H3><PRE>protected java.util.BitSet <B>lax</B>(java.util.BitSet&nbsp;generous)</PRE><DL><DD>Given a BitSet -- typically one of the URI superclass's predefined static variables -- possibly replace it with a more-lax version to better match the character sets actually left unencoded in web browser requests<P><DD><DL><DT><B>Parameters:</B><DD><CODE>generous</CODE> - original BitSet<DT><B>Returns:</B><DD>(possibly more lax) BitSet to use</DL></DD></DL><HR><A NAME="parseAuthority(java.lang.String, boolean)"><!-- --></A><H3>parseAuthority</H3><PRE>protected void <B>parseAuthority</B>(java.lang.String&nbsp;original,                              boolean&nbsp;escaped)                       throws org.apache.commons.httpclient.URIException</PRE><DL><DD>Coalesce the _host and _authority fields where  possible.  In the web crawl/http domain, most URIs have an  identical _host and _authority. (There is no port or user info.) However, the superclass always  creates two separate char[] instances.   Notably, the lengths of these char[] fields are  equal if and only if their values are identical. This method makes use of this fact to reduce the two instances to one where possible, slimming  instances.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>parseAuthority</CODE> in class <CODE>org.apache.commons.httpclient.URI</CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>org.apache.commons.httpclient.URIException</CODE><DT><B>See Also:</B><DD><CODE>URI.parseAuthority(java.lang.String, boolean)</CODE></DL></DD></DL><HR><A NAME="setURI()"><!-- --></A><H3>setURI</H3><PRE>protected void <B>setURI</B>()</PRE><DL><DD>Coalesce _scheme to existing instances, where appropriate.  In the web-crawl domain, most _schemes are 'http' or 'https', but the superclass always creates a new char[] instance. For these two cases, we replace the created instance with a  long-lived instance from a static field, saving 12-14 bytes per instance.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>setURI</CODE> in class <CODE>org.apache.commons.httpclient.URI</CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><CODE>URI.setURI()</CODE></DL></DD></DL><HR><A NAME="parseUriReference(java.lang.String, boolean)"><!-- --></A><H3>parseUriReference</H3><PRE>protected void <B>parseUriReference</B>(java.lang.String&nbsp;original,                                 boolean&nbsp;escaped)                          throws org.apache.commons.httpclient.URIException</PRE><DL><DD>IA OVERRIDDEN IN LaxURI TO INCLUDE FIX FOR  http://issues.apache.org/jira/browse/HTTPCLIENT-588  In order to avoid any possilbity of conflict with non-ASCII characters, Parse a URI reference as a <code>String</code> with the character encoding of the local system or the document. <p> The following line is the regular expression for breaking-down a URI reference into its components. <p><blockquote><pre>   ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?    12            3  4          5       6  7        8 9 </pre></blockquote><p> For example, matching the above expression to   http://jakarta.apache.org/ietf/uri/#Related results in the following subexpression matches: <p><blockquote><pre>               $1 = http:  scheme    =  $2 = http               $3 = //jakarta.apache.org  authority =  $4 = jakarta.apache.org  path      =  $5 = /ietf/uri/               $6 = <undefined>  query     =  $7 = <undefined>               $8 = #Related  fragment  =  $9 = Related </pre></blockquote><p><P><DD><DL><DT><B>Overrides:</B><DD><CODE>parseUriReference</CODE> in class <CODE>org.apache.commons.httpclient.URI</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>original</CODE> - the original character sequence<DD><CODE>escaped</CODE> - <code>true</code> if <code>original</code> is escaped<DT><B>Throws:</B><DD><CODE>org.apache.commons.httpclient.URIException</CODE> - If an error occurs.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/LaxURI.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/archive/net/FTPException.html" title="class in org.archive.net"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/archive/net/LaxURLCodec.html" title="class in org.archive.net"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/archive/net/LaxURI.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="LaxURI.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_org.apache.commons.httpclient.URI">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 2003-2006 Internet Archive. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -