Java InetAddress to str(InetAddress address)

Here you can find the source of str(InetAddress address)

Description

str

License

Open Source License

Declaration

public static String str(InetAddress address) 

Method Source Code


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

import java.net.InetAddress;

public class Main {
    public static String str(InetAddress address) {
        return address.getHostAddress();
    }/* w  w w . j  a  v  a  2  s  .  com*/
}

Related

  1. addressToLong(InetAddress address)
  2. inetAddress2Int(InetAddress addr)
  3. InetAddressToInt(InetAddress ip)
  4. inetAddressToThriftBinary(InetAddress inetAddress)
  5. ipv4AddressToInt(InetAddress addr)
  6. toAddressString(InetAddress ip)
  7. toAddrString(InetAddress ip)
  8. toDotString(InetAddress ip)
  9. toIntArray(InetAddress addr)