System.out.println("CLASS: InetAddress.getHostAddress()");
if (DEBUG) System.out.println("CLASS: InetAddress.getHostAddress()");
    public String getHostAddress() {			int len = address.length;		/* allocate room for result */		/* defined in <netinet/in.h> INET6_ADDRSTRLEN = 46 */		StringBuffer addrBuffer = new StringBuffer(46);		System.out.println("CLASS: InetAddress.getHostAddress()");		/* We have an IPv6 address.		 * Return full address for now and don't worry about		 * special cases like: 		 * - IPv4-mapped IPv6 addresses		 * - IPv4 compatible addresses		 * - :: substitution for zeros		 */		if (len == 16) {			for (int i = 0; i < len; i += 2) {				int x = ((address[i] & 0xFF) << 8) | (address[i+1] & 0xFF);				addrBuffer.append(Integer.toHexString(x).toUpperCase());				if (i < 14)					addrBuffer.append(":");			}		}		/* we have an IPv4 address */		if (len == 4) {			for (int i = 0; i < len; i++) {				addrBuffer.append(address[i] & 0xFF);				if (i < 3)					addrBuffer.append(".");			}		}		return addrBuffer.toString();     }