📄 package-summary.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:31:44 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Package java.net</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/math/package-summary.html"><B>PREV PACKAGE</B></A> <A HREF="../../java/rmi/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="package-summary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><H2>Package java.net</H2>Provides the classes for implementing networking applications.<P><B>See: </B><BR> <A HREF="#package_description"><B>Description</B></A><P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Interface Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ContentHandlerFactory.html"><I>ContentHandlerFactory</I></A></B></TD><TD>This interface defines a factory for content handlers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="DatagramSocketImplFactory.html"><I>DatagramSocketImplFactory</I></A></B></TD><TD>This interface defines a factory for datagram socket implementations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="FileNameMap.html"><I>FileNameMap</I></A></B></TD><TD>A simple interface which provides a mechanism to map between a file name and a MIME type string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="SocketImplFactory.html"><I>SocketImplFactory</I></A></B></TD><TD>This interface defines a factory for socket implementations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="SocketOptions.html"><I>SocketOptions</I></A></B></TD><TD>Interface of methods to get/set socket options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="URLStreamHandlerFactory.html"><I>URLStreamHandlerFactory</I></A></B></TD><TD>This interface defines a factory for <code>URL</code> stream protocol handlers.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Authenticator.html">Authenticator</A></B></TD><TD>The class Authenticator represents an object that knows how to obtain authentication for a network connection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ContentHandler.html">ContentHandler</A></B></TD><TD>The abstract class <code>ContentHandler</code> is the superclass of all classes that read an <code>Object</code> from a <code>URLConnection</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="DatagramPacket.html">DatagramPacket</A></B></TD><TD>This class represents a datagram packet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="DatagramSocket.html">DatagramSocket</A></B></TD><TD>This class represents a socket for sending and receiving datagram packets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="DatagramSocketImpl.html">DatagramSocketImpl</A></B></TD><TD>Abstract datagram and multicast socket implementation base class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="HttpURLConnection.html">HttpURLConnection</A></B></TD><TD>A URLConnection with support for HTTP-specific features.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="InetAddress.html">InetAddress</A></B></TD><TD>This class represents an Internet Protocol (IP) address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="JarURLConnection.html">JarURLConnection</A></B></TD><TD>A URL Connection to a Java ARchive (JAR) file or an entry in a JAR file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="MulticastSocket.html">MulticastSocket</A></B></TD><TD>The multicast datagram socket class is useful for sending and receiving IP multicast packets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NetPermission.html">NetPermission</A></B></TD><TD>This class is for various network permissions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="PasswordAuthentication.html">PasswordAuthentication</A></B></TD><TD>The class PasswordAuthentication is a data holder that is used by Authenticator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ServerSocket.html">ServerSocket</A></B></TD><TD>This class implements server sockets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Socket.html">Socket</A></B></TD><TD>This class implements client sockets (also called just "sockets").</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="SocketImpl.html">SocketImpl</A></B></TD><TD>The abstract class <code>SocketImpl</code> is a common superclass of all classes that actually implement sockets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="SocketPermission.html">SocketPermission</A></B></TD><TD>This class represents access to a network via sockets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="URL.html">URL</A></B></TD><TD>Class <code>URL</code> represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="URLClassLoader.html">URLClassLoader</A></B></TD><TD>This class loader is used to load classes and resources from a search path of URLs referring to both JAR files and directories.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="URLConnection.html">URLConnection</A></B></TD><TD>The abstract class <code>URLConnection</code> is the superclass of all classes that represent a communications link between the application and a URL.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="URLDecoder.html">URLDecoder</A></B></TD><TD>The class contains a utility method for converting from a MIME format called "<code>x-www-form-urlencoded</code>" to a <code>String</code> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="URLEncoder.html">URLEncoder</A></B></TD><TD>The class contains a utility method for converting a <code>String</code> into a MIME format called "<code>x-www-form-urlencoded</code>" format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="URLStreamHandler.html">URLStreamHandler</A></B></TD><TD>The abstract class <code>URLStreamHandler</code> is the common superclass for all stream protocol handlers.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Exception Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindException.html">BindException</A></B></TD><TD>Signals that an error occurred while attempting to bind a socket to a local address and port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ConnectException.html">ConnectException</A></B></TD><TD>Signals that an error occurred while attempting to connect a socket to a remote address and port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="MalformedURLException.html">MalformedURLException</A></B></TD><TD>Thrown to indicate that a malformed URL has occurred.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NoRouteToHostException.html">NoRouteToHostException</A></B></TD><TD>Signals that an error occurred while attempting to connect a socket to a remote address and port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ProtocolException.html">ProtocolException</A></B></TD><TD>Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="SocketException.html">SocketException</A></B></TD><TD>Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="UnknownHostException.html">UnknownHostException</A></B></TD><TD>Thrown to indicate that the IP address of a host could not be determined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="UnknownServiceException.html">UnknownServiceException</A></B></TD><TD>Thrown to indicate that an unknown service exception has occurred.</TD></TR></TABLE> <P><A NAME="package_description"><!-- --></A><H2>Package java.net Description</H2><P>Provides the classes for implementing networking applications. Using the socketclasses, you can communicate with any server on the Internet or implement yourown Internet server. A number of classes are provided to make it convenient touse Universal Resource Locators (URLs) to retrieve data on the Internet.<!--<h2>Package Specification</h2>##### FILL IN ANY SPECS NEEDED BY JAVA COMPATIBILITY KIT #####<ul> <li><a href="">##### REFER TO ANY FRAMEMAKER SPECIFICATION HERE #####</a></ul><h2>Related Documentation</h2>For overviews, tutorials, examples, guides, and tool documentation, please see:<ul> <li><a href="">##### REFER TO NON-SPEC DOCUMENTATION HERE #####</a></ul>--><P><DL><DT><B>Since: </B><DD>JDK1.0</DD></DL><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 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> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/math/package-summary.html"><B>PREV PACKAGE</B></A> <A HREF="../../java/rmi/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="package-summary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -