Java Doc for Inet4Address.java in  » Apache-Harmony-Java-SE » java-package » java » net » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.net 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.net.InetAddress
      java.net.Inet4Address

Inet4Address
final public class Inet4Address extends InetAddress (Code)



Constructor Summary
 Inet4Address(byte[] address)
    
 Inet4Address(byte[] address, String name)
    

Method Summary
public  booleanequals(Object obj)
     Returns true if obj is of the same type as the IPv4 address and they have the same IP address, false otherwise.
public  StringgetHostAddress()
     Returns a String representation of the IP address.
public  inthashCode()
     Overrides the basic hashcode function.
public  booleanisAnyLocalAddress()
    
public  booleanisLinkLocalAddress()
     Answers whether this address has link-local scope.
public  booleanisLoopbackAddress()
     Answers true if the address is a loopback address.
public  booleanisMCGlobal()
     Answers true if an address is a global multicast address.
public  booleanisMCLinkLocal()
    
public  booleanisMCNodeLocal()
     Answers false for all IPv4 addresses.
public  booleanisMCOrgLocal()
     Answers true if the address is a organization-local address.
public  booleanisMCSiteLocal()
     Answers true if the address is a site-local address.The valid range for IPv4 site-local addresses is: 239.255.0.0 to 239.255.255.255 Hence a mask of 11101111 11111111 = 0xEFFF.
public  booleanisMulticastAddress()
     Answers true if the address is a multicast address.
public  booleanisSiteLocalAddress()
     Answers whether this address has site-local scope.


Constructor Detail
Inet4Address
Inet4Address(byte[] address)(Code)



Inet4Address
Inet4Address(byte[] address, String name)(Code)




Method Detail
equals
public boolean equals(Object obj)(Code)
Returns true if obj is of the same type as the IPv4 address and they have the same IP address, false otherwise. true if equal and false otherwise



getHostAddress
public String getHostAddress()(Code)
Returns a String representation of the IP address. Host address



hashCode
public int hashCode()(Code)
Overrides the basic hashcode function. the hash code



isAnyLocalAddress
public boolean isAnyLocalAddress()(Code)
Answers if the address is the ANY Address boolean



isLinkLocalAddress
public boolean isLinkLocalAddress()(Code)
Answers whether this address has link-local scope. RFC 3484 Default Address Selection for Internet Protocol version 6 (IPv6) states IPv4 auto-configuration addresses, prefix 169.254/16, IPv4 loopback addresses, prefix 127/8, are assigned link-local scope. boolean



isLoopbackAddress
public boolean isLoopbackAddress()(Code)
Answers true if the address is a loopback address. Loopback ipv4 addresses are prefixed with: 011111111 = 127 boolean



isMCGlobal
public boolean isMCGlobal()(Code)
Answers true if an address is a global multicast address. Valid MCGlobal IPv4 addresses are 224.0.1.0 - 238.255.255.255 boolean true, if the address is in the global multicast group,false otherwise



isMCLinkLocal
public boolean isMCLinkLocal()(Code)
Answers true if the address is a link-local address.The valid range for IPv4 link-local addresses is: 224.0.0.0 to 239.0.0.255 Hence a mask of 111000000000000000000000 = 0xE00000 boolean



isMCNodeLocal
public boolean isMCNodeLocal()(Code)
Answers false for all IPv4 addresses. There are no valid IPv4 Node-local addresses boolean



isMCOrgLocal
public boolean isMCOrgLocal()(Code)
Answers true if the address is a organization-local address. The valid range for IPv4 org-local addresses is: 239.192.0.0 to 239.195.255.255 Hence masks of 11101111 11000000 to 11101111 11000011 are valid. 0xEFC0 to 0xEFC3 true if org local address, false otherwise



isMCSiteLocal
public boolean isMCSiteLocal()(Code)
Answers true if the address is a site-local address.The valid range for IPv4 site-local addresses is: 239.255.0.0 to 239.255.255.255 Hence a mask of 11101111 11111111 = 0xEFFF. boolean



isMulticastAddress
public boolean isMulticastAddress()(Code)
Answers true if the address is a multicast address. Valid IPv4 multicast addresses are prefixed with 1110 = 0xE boolean



isSiteLocalAddress
public boolean isSiteLocalAddress()(Code)
Answers whether this address has site-local scope. RFC 3484 Default Address Selection for Internet Protocol version 6 (IPv6) states IPv4 private addresses, prefixes 10/8, 172.16/12, and 192.168/16, are assigned site-local scope. boolean



Fields inherited from java.net.InetAddress
static InetAddress ANY(Code)(Java Doc)
final static InetAddress LOOPBACK(Code)(Java Doc)
final static byte[] any_bytes(Code)(Java Doc)
int family(Code)(Java Doc)
String hostName(Code)(Java Doc)
byte[] ipaddress(Code)(Java Doc)
final static byte[] localhost_bytes(Code)(Java Doc)

Methods inherited from java.net.InetAddress
static int bytesToInt(byte bytes, int start)(Code)(Java Doc)
CacheElement cacheElement()(Code)(Java Doc)
static InetAddress createHostNameFromIPAddress(String ipAddressString) throws UnknownHostException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public byte[] getAddress()(Code)(Java Doc)
native static InetAddress[] getAliasesByNameImpl(String name) throws UnknownHostException(Code)(Java Doc)
public static InetAddress[] getAllByName(String host) throws UnknownHostException(Code)(Java Doc)
public static InetAddress getByAddress(byte[] ipAddress) throws UnknownHostException(Code)(Java Doc)
static InetAddress getByAddress(byte[] ipAddress, int scope_id) throws UnknownHostException(Code)(Java Doc)
public static InetAddress getByAddress(String hostName, byte[] ipAddress) throws UnknownHostException(Code)(Java Doc)
static InetAddress getByAddressInternal(String hostName, byte[] ipAddress, int scope_id) throws UnknownHostException(Code)(Java Doc)
public static InetAddress getByName(String host) throws UnknownHostException(Code)(Java Doc)
public String getCanonicalHostName()(Code)(Java Doc)
public String getHostAddress()(Code)(Java Doc)
native static InetAddress getHostByAddrImpl(byte[] addr) throws UnknownHostException(Code)(Java Doc)
native static InetAddress getHostByNameImpl(String name, boolean preferIPv6Address) throws UnknownHostException(Code)(Java Doc)
public String getHostName()(Code)(Java Doc)
native static String getHostNameImpl()(Code)(Java Doc)
static String getHostNameInternal(String host) throws UnknownHostException(Code)(Java Doc)
public static InetAddress getLocalHost() throws UnknownHostException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
static int inetAddr(String host) throws UnknownHostException(Code)(Java Doc)
native static int inetAddrImpl(String host) throws UnknownHostException(Code)(Java Doc)
native static String inetNtoaImpl(int hipAddr)(Code)(Java Doc)
static void intToBytes(int value, byte bytes, int start)(Code)(Java Doc)
public boolean isAnyLocalAddress()(Code)(Java Doc)
public boolean isLinkLocalAddress()(Code)(Java Doc)
public boolean isLoopbackAddress()(Code)(Java Doc)
public boolean isMCGlobal()(Code)(Java Doc)
public boolean isMCLinkLocal()(Code)(Java Doc)
public boolean isMCNodeLocal()(Code)(Java Doc)
public boolean isMCOrgLocal()(Code)(Java Doc)
public boolean isMCSiteLocal()(Code)(Java Doc)
public boolean isMulticastAddress()(Code)(Java Doc)
public boolean isReachable(int timeout) throws IOException(Code)(Java Doc)
public boolean isReachable(NetworkInterface netif, int ttl, int timeout) throws IOException(Code)(Java Doc)
public boolean isSiteLocalAddress()(Code)(Java Doc)
static synchronized InetAddress lookupHostByName(String host) throws UnknownHostException(Code)(Java Doc)
static boolean preferIPv6Addresses()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.