文件名称:InetAddress5
- 所属分类:
- JSP源码/Java
- 资源属性:
- 上传时间:
- 2012-11-26
- 文件大小:
- 18kb
- 下载次数:
- 0次
- 提 供 者:
- 风铃***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
InetAddress类是Java中用于描述IP地址的类。它在java.net包中。在Java中分别用Inet4Address和Inet6Address类来描述IPv4和IPv6的地址。这两个类都是InetAddress的子类。由于InetAddress没有public的构造方法,因此,要想创建InetAddress对象,必须得依靠它的四个静态方法。InetAddress可以通过getLocalHost方法得到本机的InetAddress对象,也可以通过getByName、getAllByName和getByAddress得到远程主机的InetAddress对象。-Java InetAddress class is used to describe the IP addresses in the class. It is in the java.net package. In Java, classes were used to describe Inet4Address and Inet6Address IPv4 and IPv6 addresses. These two classes are a subclass of InetAddress. Since there is no public constructor InetAddress, therefore, to create the InetAddress object, you must have to rely on its four static methods. InetAddress can be obtained by getLocalHost this machine InetAddress object, you can also getByName, getAllByName and getByAddress InetAddress object by the remote host.
相关搜索: InetAddress
(系统自动生成,下载前可以参看下载内容)
下载文件列表
创建InetAddress对象的四个静态方法.docx