Java InetAddress parseInetAddressFromString(String input)

Here you can find the source of parseInetAddressFromString(String input)

Description

parse Inet Address From String

License

Open Source License

Declaration

public static InetAddress parseInetAddressFromString(String input) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.net.InetAddress;

public class Main {
    public static InetAddress parseInetAddressFromString(String input) {
        try {/*from w ww . jav a 2  s  .c o  m*/
            InetAddress address = InetAddress.getByName(input);
            return address;
        } catch (Exception ex) {
            return null;
        }
    }
}

Related

  1. inetAddressFromThriftString(String ipAddress)
  2. inetAddressGt(InetAddress a, InetAddress b)
  3. inetAddrToByteArray(InetAddress a)
  4. newInterfaceAddress(InetAddress inetAddress, short maskLength)
  5. normalizeHostAddress(final InetAddress localHost)
  6. readInetAddress(final DataInput in, final boolean fixedLength)
  7. readInetAddress(final String stringInetAddress)
  8. remove(InetAddress[] a_, InetAddress b)
  9. removeNull(InetAddress addrs[])