文件名称:InetAddress5
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:17.99kb
-
已下载: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.