📄 url.html
字号:
<BR> The URL represents the remote object on the World Wide Web to which this connection is opened.</TD></TR></TABLE> <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> <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> 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> <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> name)</CODE><BR> 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> <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> 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> <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> Returns the URL for the Jar file for this connection.</TD></TR></TABLE> <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 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> url)</CODE><BR> 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 <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> name, <A HREF="../../../java/util/jar/Manifest.html">Manifest</A> man, <A HREF="../../../java/net/URL.html">URL</A> url)</CODE><BR> 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 <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>[] urls, <A HREF="../../../java/lang/ClassLoader.html">ClassLoader</A> parent)</CODE><BR> 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 <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>[] urls)</CODE><BR> 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> 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> other)</CODE><BR> 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 <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> u)</CODE><BR> 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 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> u, <A HREF="../../../java/lang/String.html">String</A> spec, int start, int limit)</CODE><BR> 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 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> u1, <A HREF="../../../java/net/URL.html">URL</A> u2)</CODE><BR> Provides the default equals calculation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> u)</CODE><BR> Provides the default hash calculation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> u1, <A HREF="../../../java/net/URL.html">URL</A> u2)</CODE><BR> 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 <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> u)</CODE><BR> 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 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> u1, <A HREF="../../../java/net/URL.html">URL</A> u2)</CODE><BR> 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 <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> u)</CODE><BR> 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 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> u, <A HREF="../../../java/lang/String.html">String</A> protocol, <A HREF="../../../java/lang/String.html">String</A> host, int port, <A HREF="../../../java/lang/String.html">String</A> authority, <A HREF="../../../java/lang/String.html">String</A> userInfo, <A HREF="../../../java/lang/String.html">String</A> path, <A HREF="../../../java/lang/String.html">String</A> query, <A HREF="../../../java/lang/String.html">String</A> ref)</CODE><BR> 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 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> u, <A HREF="../../../java/lang/String.html">String</A> protocol, <A HREF="../../../java/lang/String.html">String</A> host, int port, <A HREF="../../../java/lang/String.html">String</A> file, <A HREF="../../../java/lang/String.html">String</A> ref)</CODE><BR> <B>Deprecated.</B> <I>Use setURL(URL, String, String, int, String, String, String, String);</I></TD></TR></TABLE> <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>[] urls, <A HREF="../../../java/lang/ClassLoader.html">ClassLoader</A> parent)</CODE><BR> 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>[] urls)</CODE><BR> 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>[] urls, <A HREF="../../../java/lang/ClassLoader.html">ClassLoader</A> parent, <A HREF="../../../java/net/URLStreamHandlerFactory.html">URLStreamHandlerFactory</A> factory)</CODE><BR> 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> url)</CODE><BR> 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> url)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -