org.jdiameter.client.impl.helpers
Class IPConverter

java.lang.Object
  extended by org.jdiameter.client.impl.helpers.IPConverter

public class IPConverter
extends java.lang.Object

This class allows to convert string to IPv4/IPv6 object instance


Constructor Summary
IPConverter()
           
 
Method Summary
static java.net.InetAddress InetAddressByIPv4(java.lang.String address)
          Convert defined string to IPv4 object instance
static java.net.InetAddress InetAddressByIPv6(java.lang.String address)
          Convert defined string to IPv6 object instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPConverter

public IPConverter()
Method Detail

InetAddressByIPv4

public static java.net.InetAddress InetAddressByIPv4(java.lang.String address)
Convert defined string to IPv4 object instance

Parameters:
address - string representation of ip address
Returns:
IPv4 object instance

InetAddressByIPv6

public static java.net.InetAddress InetAddressByIPv6(java.lang.String address)
Convert defined string to IPv6 object instance

Parameters:
address - string representation of ip address
Returns:
IPv6 object instance


Copyright © 2008. All Rights Reserved.