Java Doc for Address.java in  » Net » dnsjava » org » xbill » DNS » 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 » Net » dnsjava » org.xbill.DNS 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.xbill.DNS.Address

Address
final public class Address (Code)
Routines dealing with IP addresses. Includes functions similar to those in the java.net.InetAddress class.
author:
   Brian Wellington


Field Summary
final public static  intIPv4
    
final public static  intIPv6
    


Method Summary
public static  intaddressLength(int family)
     Returns the length of an address in a particular family.
Parameters:
  family - The address family, either IPv4 or IPv6.
public static  intfamilyOf(InetAddress address)
     Returns the family of an InetAddress.
Parameters:
  address - The supplied address.
public static  InetAddress[]getAllByName(String name)
    
public static  InetAddressgetByAddress(String addr)
     Converts an address from its string representation to an IP address.
public static  InetAddressgetByAddress(String addr, int family)
     Converts an address from its string representation to an IP address in a particular family.
Parameters:
  addr - The address, in string form
Parameters:
  family - The address family, either IPv4 or IPv6.
public static  InetAddressgetByName(String name)
    
public static  StringgetHostName(InetAddress addr)
    
public static  booleanisDottedQuad(String s)
     Determines if a string contains a valid IP address.
public static  int[]toArray(String s, int family)
     Convert a string containing an IP address to an array of 4 or 16 integers.
Parameters:
  s - The address, in text format.
Parameters:
  family - The address family.
public static  int[]toArray(String s)
     Convert a string containing an IPv4 address to an array of 4 integers.
Parameters:
  s - The address, in text format.
public static  byte[]toByteArray(String s, int family)
     Convert a string containing an IP address to an array of 4 or 16 bytes.
Parameters:
  s - The address, in text format.
Parameters:
  family - The address family.
public static  StringtoDottedQuad(byte[] addr)
     Converts a byte array containing an IPv4 address into a dotted quad string.
public static  StringtoDottedQuad(int[] addr)
     Converts an int array containing an IPv4 address into a dotted quad string.

Field Detail
IPv4
final public static int IPv4(Code)



IPv6
final public static int IPv6(Code)





Method Detail
addressLength
public static int addressLength(int family)(Code)
Returns the length of an address in a particular family.
Parameters:
  family - The address family, either IPv4 or IPv6. The length of addresses in that family.



familyOf
public static int familyOf(InetAddress address)(Code)
Returns the family of an InetAddress.
Parameters:
  address - The supplied address. The family, either IPv4 or IPv6.



getAllByName
public static InetAddress[] getAllByName(String name) throws UnknownHostException(Code)
Determines all IP address of a host
Parameters:
  name - The hostname to look up All matching IP addresses
exception:
  UnknownHostException - The hostname does not have any addresses



getByAddress
public static InetAddress getByAddress(String addr) throws UnknownHostException(Code)
Converts an address from its string representation to an IP address. The address can be either IPv4 or IPv6.
Parameters:
  addr - The address, in string form The IP addresses
exception:
  UnknownHostException - The address is not a valid IP address.



getByAddress
public static InetAddress getByAddress(String addr, int family) throws UnknownHostException(Code)
Converts an address from its string representation to an IP address in a particular family.
Parameters:
  addr - The address, in string form
Parameters:
  family - The address family, either IPv4 or IPv6. The IP addresses
exception:
  UnknownHostException - The address is not a valid IP address inthe specified address family.



getByName
public static InetAddress getByName(String name) throws UnknownHostException(Code)
Determines the IP address of a host
Parameters:
  name - The hostname to look up The first matching IP address
exception:
  UnknownHostException - The hostname does not have any addresses



getHostName
public static String getHostName(InetAddress addr) throws UnknownHostException(Code)
Determines the hostname for an address
Parameters:
  addr - The address to look up The associated host name
exception:
  UnknownHostException - There is no hostname for the address



isDottedQuad
public static boolean isDottedQuad(String s)(Code)
Determines if a string contains a valid IP address.
Parameters:
  s - The string Whether the string contains a valid IP address



toArray
public static int[] toArray(String s, int family)(Code)
Convert a string containing an IP address to an array of 4 or 16 integers.
Parameters:
  s - The address, in text format.
Parameters:
  family - The address family. The address



toArray
public static int[] toArray(String s)(Code)
Convert a string containing an IPv4 address to an array of 4 integers.
Parameters:
  s - The address, in text format. The address



toByteArray
public static byte[] toByteArray(String s, int family)(Code)
Convert a string containing an IP address to an array of 4 or 16 bytes.
Parameters:
  s - The address, in text format.
Parameters:
  family - The address family. The address



toDottedQuad
public static String toDottedQuad(byte[] addr)(Code)
Converts a byte array containing an IPv4 address into a dotted quad string.
Parameters:
  addr - The array The string representation



toDottedQuad
public static String toDottedQuad(int[] addr)(Code)
Converts an int array containing an IPv4 address into a dotted quad string.
Parameters:
  addr - The array The string representation



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) 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.