FileDocCategorySizeDatePackage
AddressTests.javaAPI DocExample257Sun Dec 12 10:51:38 GMT 2004None

AddressTests

public class AddressTests extends Object

Fields Summary
Constructors Summary
Methods Summary
public static intgetVersion(java.net.InetAddress ia)

    
    byte[] address = ia.getAddress();
    if (address.length == 4) return 4;
    else if (address.length == 16) return 6;
    else return -1;