Code example for InetSocketAddress

Methods: getAddressgetPort

0
        } 
 
        SerializeWriter out = serializer.getWriter();
        InetSocketAddress address = (InetSocketAddress) object;
 
        InetAddress inetAddress = address.getAddress();
 
        out.write('{');
        if (inetAddress != null) {
            out.writeFieldName("address");
            serializer.write(inetAddress);
            out.write(',');
        } 
        out.writeFieldName("port");
        out.writeInt(address.getPort());
        out.write('}');
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE