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

📄 urlconnect.html

📁 XMLVocabulary支持显示、查询、修改和保存XML数据。可以将XML映射到数据库。你也需要的只是使用XML作为你的项目的主数据。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="URLConnect(java.net.URL)"><!-- --></A><H3>
URLConnect</H3>
<PRE>
public <B>URLConnect</B>(java.net.URL&nbsp;url)</PRE>
<DL>
<DD>Creates an URLConnect instance.
<P>
<DT><B>See Also:</B><DD><A HREF="../../../../org/amic/util/url/URLConnect.html#URLConnect(java.lang.String, java.lang.String)"><CODE>URLConnect(String url, String param)</CODE></A></DL>
<HR>

<A NAME="URLConnect(java.lang.String)"><!-- --></A><H3>
URLConnect</H3>
<PRE>
public <B>URLConnect</B>(java.lang.String&nbsp;url)</PRE>
<DL>
<DD>Creates an URLConnect instance.
<P>
<DT><B>See Also:</B><DD><A HREF="../../../../org/amic/util/url/URLConnect.html#URLConnect(java.lang.String, java.lang.String)"><CODE>URLConnect(String url, String param)</CODE></A></DL>
<HR>

<A NAME="URLConnect(java.lang.String, java.lang.String)"><!-- --></A><H3>
URLConnect</H3>
<PRE>
public <B>URLConnect</B>(java.lang.String&nbsp;url,                  java.lang.String&nbsp;param)</PRE>
<DL>
<DD>Creates an URLConnect instance. The parameters passed to the given URL will be encoded. The default method for the connection is set to POST.
<P>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - The URL to connect to.<DD><CODE>param</CODE> - The parameters passed to the URL.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="setMethod(java.lang.String)"><!-- --></A><H3>
setMethod</H3>
<PRE>
public <A HREF="../../../../org/amic/util/url/URLConnect.html">URLConnect</A> <B>setMethod</B>(java.lang.String&nbsp;method)</PRE>
<DL>
<DD>Sets the method used to connect. Should be either GET or POST.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setParams(java.lang.String)"><!-- --></A><H3>
setParams</H3>
<PRE>
public <A HREF="../../../../org/amic/util/url/URLConnect.html">URLConnect</A> <B>setParams</B>(java.lang.String&nbsp;param)</PRE>
<DL>
<DD>Sets the parameters passed when connecting. This parameters are automaticly encoded.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setParams(java.lang.String, boolean)"><!-- --></A><H3>
setParams</H3>
<PRE>
public <A HREF="../../../../org/amic/util/url/URLConnect.html">URLConnect</A> <B>setParams</B>(java.lang.String&nbsp;param,                            boolean&nbsp;encode)</PRE>
<DL>
<DD>Sets the parameters passed when connecting. This parameters are encoded depending on the value of <code>encode</code>..
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getInputStream()"><!-- --></A><H3>
getInputStream</H3>
<PRE>
public java.io.InputStream <B>getInputStream</B>()</PRE>
<DL>
<DD>Gets the InputStream with the contents of the connection.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getContent()"><!-- --></A><H3>
getContent</H3>
<PRE>
public java.lang.String <B>getContent</B>()</PRE>
<DL>
<DD>Gets the content of the connection as a String.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toFile(java.lang.String)"><!-- --></A><H3>
toFile</H3>
<PRE>
public boolean <B>toFile</B>(java.lang.String&nbsp;file)</PRE>
<DL>
<DD>Writes the content to a file. The content is treated as binary.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toFile(java.io.File)"><!-- --></A><H3>
toFile</H3>
<PRE>
public boolean <B>toFile</B>(java.io.File&nbsp;file)</PRE>
<DL>
<DD>Writes the content to a file. The content is treated as binary.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addURLListener(org.amic.util.url.URLListener)"><!-- --></A><H3>
addURLListener</H3>
<PRE>
public void <B>addURLListener</B>(<A HREF="../../../../org/amic/util/url/URLListener.html">URLListener</A>&nbsp;l)</PRE>
<DL>
<DD>Adds a listener that will be called when downloading data from the URL. The listener gets an URLEvent with the method <code>getCount()</code>, which represents the total amount of bytes received.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeURLListener(org.amic.util.url.URLListener)"><!-- --></A><H3>
removeURLListener</H3>
<PRE>
public void <B>removeURLListener</B>(<A HREF="../../../../org/amic/util/url/URLListener.html">URLListener</A>&nbsp;l)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fireURLDownloading()"><!-- --></A><H3>
fireURLDownloading</H3>
<PRE>
protected void <B>fireURLDownloading</B>()</PRE>
<DL>
<DD>Fires an URLEvent each time receive new bytes from the URL.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <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="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>
<b>Amic utility<br> classes</b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/amic/util/url/UrlCompose.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/amic/util/url/URLEvent.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="URLConnect.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size=-1>Contact me at <a href='mailto:lluis@turro.org'>Lluis Turro</a></font>
</BODY>
</HTML>

⌨️ 快捷键说明

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