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

📄 url.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The URL represents the remote object on the World Wide Web to  which this connection is opened.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/net/package-summary.html">java.net</A> that return <A HREF="../../../java/net/URL.html">URL</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/net/URL.html">URL</A>[]</CODE></FONT></TD><TD><CODE><B>URLClassLoader.</B><B><A HREF="../../../java/net/URLClassLoader.html#getURLs()">getURLs</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the search path of URLs for loading classes and resources.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/net/URL.html">URL</A></CODE></FONT></TD><TD><CODE><B>URLClassLoader.</B><B><A HREF="../../../java/net/URLClassLoader.html#findResource(java.lang.String)">findResource</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the resource with the specified name on the URL search path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/net/URL.html">URL</A></CODE></FONT></TD><TD><CODE><B>URLConnection.</B><B><A HREF="../../../java/net/URLConnection.html#getURL()">getURL</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of this <code>URLConnection</code>'s <code>URL</code> field.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/net/URL.html">URL</A></CODE></FONT></TD><TD><CODE><B>JarURLConnection.</B><B><A HREF="../../../java/net/JarURLConnection.html#getJarFileURL()">getJarFileURL</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the URL for the Jar file for this connection.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/net/package-summary.html">java.net</A> with parameters of type <A HREF="../../../java/net/URL.html">URL</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>URLClassLoader.</B><B><A HREF="../../../java/net/URLClassLoader.html#addURL(java.net.URL)">addURL</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Appends the specified URL to the list of URLs to search for classes and resources.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../java/lang/Package.html">Package</A></CODE></FONT></TD><TD><CODE><B>URLClassLoader.</B><B><A HREF="../../../java/net/URLClassLoader.html#definePackage(java.lang.String, java.util.jar.Manifest, java.net.URL)">definePackage</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name,              <A HREF="../../../java/util/jar/Manifest.html">Manifest</A>&nbsp;man,              <A HREF="../../../java/net/URL.html">URL</A>&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Defines a new package by name in this ClassLoader.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/net/URLClassLoader.html">URLClassLoader</A></CODE></FONT></TD><TD><CODE><B>URLClassLoader.</B><B><A HREF="../../../java/net/URLClassLoader.html#newInstance(java.net.URL[], java.lang.ClassLoader)">newInstance</A></B>(<A HREF="../../../java/net/URL.html">URL</A>[]&nbsp;urls,            <A HREF="../../../java/lang/ClassLoader.html">ClassLoader</A>&nbsp;parent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new instance of URLClassLoader for the specified URLs and parent class loader.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/net/URLClassLoader.html">URLClassLoader</A></CODE></FONT></TD><TD><CODE><B>URLClassLoader.</B><B><A HREF="../../../java/net/URLClassLoader.html#newInstance(java.net.URL[])">newInstance</A></B>(<A HREF="../../../java/net/URL.html">URL</A>[]&nbsp;urls)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B>URL.</B><B><A HREF="../../../java/net/URL.html#sameFile(java.net.URL)">sameFile</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;other)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares two URLs, excluding the "ref" fields.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract &nbsp;<A HREF="../../../java/net/URLConnection.html">URLConnection</A></CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#openConnection(java.net.URL)">openConnection</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a connection to the object referenced by the <code>URL</code> argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#parseURL(java.net.URL, java.lang.String, int, int)">parseURL</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u,         <A HREF="../../../java/lang/String.html">String</A>&nbsp;spec,         int&nbsp;start,         int&nbsp;limit)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the string representation of a <code>URL</code> into a <code>URL</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#equals(java.net.URL, java.net.URL)">equals</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u1,       <A HREF="../../../java/net/URL.html">URL</A>&nbsp;u2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides the default equals calculation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;int</CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#hashCode(java.net.URL)">hashCode</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides the default hash calculation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#sameFile(java.net.URL, java.net.URL)">sameFile</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u1,         <A HREF="../../../java/net/URL.html">URL</A>&nbsp;u2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../java/net/InetAddress.html">InetAddress</A></CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#getHostAddress(java.net.URL)">getHostAddress</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the IP address of our host.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#hostsEqual(java.net.URL, java.net.URL)">hostsEqual</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u1,           <A HREF="../../../java/net/URL.html">URL</A>&nbsp;u2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares the host components of two URLs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#toExternalForm(java.net.URL)">toExternalForm</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a <code>URL</code> of a specific protocol to a <code>String</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#setURL(java.net.URL, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">setURL</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;protocol,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;host,       int&nbsp;port,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;authority,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;userInfo,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;path,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;query,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;ref)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the fields of the <code>URL</code> argument to the indicated values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>URLStreamHandler.</B><B><A HREF="../../../java/net/URLStreamHandler.html#setURL(java.net.URL, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String)">setURL</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;u,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;protocol,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;host,       int&nbsp;port,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;file,       <A HREF="../../../java/lang/String.html">String</A>&nbsp;ref)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use setURL(URL, String, String, int, String, String, String,             String);</I></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/net/package-summary.html">java.net</A> with parameters of type <A HREF="../../../java/net/URL.html">URL</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/URLClassLoader.html#URLClassLoader(java.net.URL[], java.lang.ClassLoader)">URLClassLoader</A></B>(<A HREF="../../../java/net/URL.html">URL</A>[]&nbsp;urls,               <A HREF="../../../java/lang/ClassLoader.html">ClassLoader</A>&nbsp;parent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new URLClassLoader for the given URLs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/URLClassLoader.html#URLClassLoader(java.net.URL[])">URLClassLoader</A></B>(<A HREF="../../../java/net/URL.html">URL</A>[]&nbsp;urls)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new URLClassLoader for the specified URLs using the default delegation parent <code>ClassLoader</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/URLClassLoader.html#URLClassLoader(java.net.URL[], java.lang.ClassLoader, java.net.URLStreamHandlerFactory)">URLClassLoader</A></B>(<A HREF="../../../java/net/URL.html">URL</A>[]&nbsp;urls,               <A HREF="../../../java/lang/ClassLoader.html">ClassLoader</A>&nbsp;parent,               <A HREF="../../../java/net/URLStreamHandlerFactory.html">URLStreamHandlerFactory</A>&nbsp;factory)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new URLClassLoader for the specified URLs, parent class loader, and URLStreamHandlerFactory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/URLConnection.html#URLConnection(java.net.URL)">URLConnection</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a URL connection to the specified URL.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/net/JarURLConnection.html#JarURLConnection(java.net.URL)">JarURLConnection</A></B>(<A HREF="../../../java/net/URL.html">URL</A>&nbsp;url)</CODE>

⌨️ 快捷键说明

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