Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.archive.util
Class InetAddressUtil

    java.lang.Object
      org.archive.util.InetAddressUtil

    public class InetAddressUtil

extends java.lang.Object

InetAddress utility.

Version:
  $Date: 2006-09-20 22:40:21 +0000 (Wed, 20 Sep 2006) $, $Revision: 4644 $
Author:
  stack

Field Summary
`static java.util.regex.Pattern` | `IPV4_QUADS` ipv4 address.

Method Summary
`static java.util.List<java.lang.String>` | `getAllLocalHostNames()`
`static java.net.InetAddress` | `getIPHostAddress(java.lang.String host)` Returns InetAddress for passed `host` IF its in IPV4 quads format (e.g.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### IPV4_QUADS

    public static java.util.regex.Pattern IPV4_QUADS

  ipv4 address.

Method Detail

### getIPHostAddress

    public static java.net.InetAddress getIPHostAddress(java.lang.String host)

  Returns InetAddress for passed `host` IF its in IPV4 quads format (e.g. 128.128.128.128).

  TODO: Move to an AddressParsingUtil class.

  Parameters:
    `host` - Host name to examine.
  Returns:
    InetAddress IF the passed name was an IP address, else null.

### getAllLocalHostNames

    public static java.util.List<java.lang.String> getAllLocalHostNames()

  Returns:
    All known local names for this host or null if none found.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2008 Internet Archive. All Rights Reserved.