Java Doc for Inet6Address.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.Inet6Address

Inet6Address
final public class Inet6Address extends InetAddress (Code)


Field Summary
final static  InetAddressANY
    
final static  InetAddressLOOPBACK
    
final static  byte[]any_bytes
    
 Stringifname
    
final static  byte[]localhost_bytes
    
 intscope_id
    
 booleanscope_id_set
    
 booleanscope_ifname_set
    
transient  NetworkInterfacescopedIf
    

Constructor Summary
 Inet6Address(byte address)
    
 Inet6Address(byte address, String name)
    
 Inet6Address(byte address, String name, int scope_id)
    
 Inet6Address(byte address, int scope_id)
    

Method Summary
public  booleanequals(Object obj)
     Returns true if obj is of the same type as the IPv6 address and they have the same IP address, false otherwise.
public static  Inet6AddressgetByAddress(String host, byte[] addr, int scope_id)
     Constructs an IPv6 address according to the given host, addr and scope_id.
public static  Inet6AddressgetByAddress(String host, byte[] addr, NetworkInterface nif)
     Constructs an IPv6 address according to the given host, addr and nif.
public  StringgetHostAddress()
    
public  intgetScopeId()
     Returns the scope id of this address if it is associated with an interface.
public  NetworkInterfacegetScopedInterface()
     Returns the network interface if this address is instanced with a scoped network interface.
public  inthashCode()
     Returns the hashcode of the receiver.
public  booleanisAnyLocalAddress()
     Answer true if the InetAddress is the unspecified address "::".
public  booleanisIPv4CompatibleAddress()
     An IPv4 compatible address is prefixed with 96 bits of 0's.
public  booleanisLinkLocalAddress()
     Answer true if the InetAddress is a link-local address.
public  booleanisLoopbackAddress()
    
public  booleanisMCGlobal()
     Answer true if the InetAddress is a global multicast address. A valid IPv6 global multicast address is 11111111xxxx1110 (i.e.
public  booleanisMCLinkLocal()
     Answer true if the InetAddress is a link-local multicast address.
public  booleanisMCNodeLocal()
     Answer true if the InetAddress is a node-local multicast address.
public  booleanisMCOrgLocal()
     Answer true if the InetAddress is a org-local multicast address.
public  booleanisMCSiteLocal()
     Answer true if the InetAddress is a site-local multicast address.
public  booleanisMulticastAddress()
     Answer true if the InetAddress is an IP multicast address.
public  booleanisSiteLocalAddress()
     Answer true if the InetAddress is a site-local address.
public  StringtoString()
     Answers a string containing a concise, human-readable description of the address.

Field Detail
ANY
final static InetAddress ANY(Code)



LOOPBACK
final static InetAddress LOOPBACK(Code)



any_bytes
final static byte[] any_bytes(Code)



ifname
String ifname(Code)



localhost_bytes
final static byte[] localhost_bytes(Code)



scope_id
int scope_id(Code)



scope_id_set
boolean scope_id_set(Code)



scope_ifname_set
boolean scope_ifname_set(Code)



scopedIf
transient NetworkInterface scopedIf(Code)




Constructor Detail
Inet6Address
Inet6Address(byte address)(Code)



Inet6Address
Inet6Address(byte address, String name)(Code)



Inet6Address
Inet6Address(byte address, String name, int scope_id)(Code)
Constructs an InetAddress, representing the address and hostName and scope_id
Parameters:
  address - network address
Parameters:
  name - Name associated with the address
Parameters:
  scope_id - The scope id for link or site local addresses



Inet6Address
Inet6Address(byte address, int scope_id)(Code)
Constructs an InetAddress, representing the address and hostName and scope_id
Parameters:
  address - network address
Parameters:
  scope_id - The scope id for link or site local addresses




Method Detail
equals
public boolean equals(Object obj)(Code)
Returns true if obj is of the same type as the IPv6 address and they have the same IP address, false otherwise. the scope id does not seem to be part of the comparison String



getByAddress
public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) throws UnknownHostException(Code)
Constructs an IPv6 address according to the given host, addr and scope_id.
Parameters:
  host - hostname associated with the address
Parameters:
  addr - network address
Parameters:
  scope_id - the scope id for link or site local addresses an Inet6Address instance
throws:
  UnknownHostException - if the address is null or of invalid length



getByAddress
public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif) throws UnknownHostException(Code)
Constructs an IPv6 address according to the given host, addr and nif. scope_id is set according to the given nif and the addr type(e.g. site local or link local).
Parameters:
  host - host name associated with the address
Parameters:
  addr - network address
Parameters:
  nif - the Network Interface that this address is associated with. an Inet6Address instance
throws:
  UnknownHostException - if the address is null or of invalid length, or theinterface doesn't have a numeric scope id for the givenaddress type.



getHostAddress
public String getHostAddress()(Code)



getScopeId
public int getScopeId()(Code)
Returns the scope id of this address if it is associated with an interface. Otherwise returns zero. the scope_id.



getScopedInterface
public NetworkInterface getScopedInterface()(Code)
Returns the network interface if this address is instanced with a scoped network interface. Otherwise returns null. the scoped network interface.



hashCode
public int hashCode()(Code)
Returns the hashcode of the receiver. the hashcode



isAnyLocalAddress
public boolean isAnyLocalAddress()(Code)
Answer true if the InetAddress is the unspecified address "::". boolean true, if the address is in the multicast group, falseotherwise



isIPv4CompatibleAddress
public boolean isIPv4CompatibleAddress()(Code)
An IPv4 compatible address is prefixed with 96 bits of 0's. The last 32-bits are varied corresponding with the 32-bit IPv4 address space.



isLinkLocalAddress
public boolean isLinkLocalAddress()(Code)
Answer true if the InetAddress is a link-local address. A valid IPv6 link-local address is prefixed with 1111111010 boolean true, if it is a link-local address, false otherwise



isLoopbackAddress
public boolean isLoopbackAddress()(Code)
Answer true if the InetAddress is the loopback address The valid IPv6 loopback address is ::1 boolean true if the address is the loopback, false otherwise



isMCGlobal
public boolean isMCGlobal()(Code)
Answer true if the InetAddress is a global multicast address. A valid IPv6 global multicast address is 11111111xxxx1110 (i.e. FF0E) boolean true, if it is a global multicast address, falseotherwise



isMCLinkLocal
public boolean isMCLinkLocal()(Code)
Answer true if the InetAddress is a link-local multicast address. A valid IPv6 link-local multicast address is prefixed with 11111111xxxx0010 boolean true, if it is a link-local multicast address, falseotherwise



isMCNodeLocal
public boolean isMCNodeLocal()(Code)
Answer true if the InetAddress is a node-local multicast address. A valid IPv6 node-local multicast address is prefixed with 11111111xxxx0001 boolean true, if it is a node-local multicast address, falseotherwise



isMCOrgLocal
public boolean isMCOrgLocal()(Code)
Answer true if the InetAddress is a org-local multicast address. A valid IPv6 org-local multicast address is prefixed with 11111111xxxx1000 boolean true, if it is a org-local multicast address, falseotherwise



isMCSiteLocal
public boolean isMCSiteLocal()(Code)
Answer true if the InetAddress is a site-local multicast address. A valid IPv6 site-local multicast address is prefixed with 11111111xxxx0101 boolean true, if it is a site-local multicast address, falseotherwise



isMulticastAddress
public boolean isMulticastAddress()(Code)
Answer true if the InetAddress is an IP multicast address. Valid IPv6 multicast address have the binary prefixed with 11111111 or FF (hex). boolean true, if the address is in the multicast group, falseotherwise



isSiteLocalAddress
public boolean isSiteLocalAddress()(Code)
Answer true if the InetAddress is a site-local address. A valid IPv6 site-local address is prefixed with 1111111011 boolean true, if it is a site-local address, false otherwise



toString
public String toString()(Code)
Answers a string containing a concise, human-readable description of the address. String the description, as host/address



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.