Java InetAddress to inetAddressToThriftBinary(InetAddress inetAddress)

Here you can find the source of inetAddressToThriftBinary(InetAddress inetAddress)

Description

inet Address To Thrift Binary

License

Apache License

Declaration

public static byte[] inetAddressToThriftBinary(InetAddress inetAddress) 

Method Source Code


//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
}

Related

  1. addressToLong(InetAddress address)
  2. inetAddress2Int(InetAddress addr)
  3. InetAddressToInt(InetAddress ip)
  4. ipv4AddressToInt(InetAddress addr)
  5. str(InetAddress address)
  6. toAddressString(InetAddress ip)
  7. toAddrString(InetAddress ip)