Java Socket Address Get address2string(InetSocketAddress isa)

Here you can find the source of address2string(InetSocketAddress isa)

Description

addressstring

License

Open Source License

Declaration

public static String address2string(InetSocketAddress isa) 

Method Source Code

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

import java.net.InetSocketAddress;

public class Main {
    public static String address2string(InetSocketAddress isa) {
        if (isa == null)
            return null;
        return isa.getAddress().getHostAddress() + ":" + isa.getPort();
    }/*from w w  w  . j a v a2  s . c  o  m*/
}

Related

  1. addr_to_sbuf(InetSocketAddress addr, StringBuffer buf)
  2. address2String(InetSocketAddress address)
  3. addressIn(SocketAddress address, String ip)
  4. addressLabel(SocketAddress localAddress, SocketAddress remoteAddress)
  5. addressMapToString( Map> map)
  6. addressToString(InetSocketAddress a)