Here you can find the source of inetAddressToThriftBinary(InetAddress inetAddress)
public static byte[] inetAddressToThriftBinary(InetAddress inetAddress)
//package com.java2s; //License from project: Apache License import java.net.InetAddress; public class Main { public static byte[] inetAddressToThriftBinary(InetAddress inetAddress) { return inetAddress.getAddress(); }//from www .ja v a 2s .c om }