Java Socket Address Get parseSocketAddressAddr(SocketAddress socketAddress)

Here you can find the source of parseSocketAddressAddr(SocketAddress socketAddress)

Description

parse Socket Address Addr

License

Apache License

Declaration

public static String parseSocketAddressAddr(SocketAddress socketAddress) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.net.SocketAddress;

public class Main {
    public static String parseSocketAddressAddr(SocketAddress socketAddress) {
        if (socketAddress != null) {
            final String addr = socketAddress.toString();

            if (addr.length() > 0) {
                return addr.substring(1);
            }/*from   w  ww .jav  a2 s . co m*/
        }
        return "";
    }
}

Related

  1. parseSocketAddress(String address)
  2. parseSocketAddress(String addressPort, int defaultPort)
  3. parseSocketAddress(String addrString)
  4. parseSocketAddress(String anAddress)
  5. parseSocketAddress(String socketAddress)
  6. sizeOfInet(InetSocketAddress inet)
  7. socketAddress2String(final SocketAddress addr)
  8. string2SocketAddress(final String addr)
  9. stringAddressToSocketAddress(String address)