public InetAddress toInetAddress() {
    """
	Convert to @{java.net.InetAddress}.
	
	@return The IPv6 address as a @{java.net.InetAddress}.
    """
        final byte[] bytes = new byte[16];
        for (int i = 0; i < pieces.length; i++) {
            bytes[i*2] = (byte)((pieces[i] >> 8) & 0xFF);
            bytes[i*2+1] = (byte)(pieces[i] & 0xFF);
        }

        try {
            return InetAddress.getByAddress(bytes);
        } catch (UnknownHostException e) {
            // Can't happen if we pass the right amount of bytes
            throw new RuntimeException("BUG", e);
        }
    }
public InetAddress toInetAddress() {
        final byte[] bytes = new byte[16];
        for (int i = 0; i < pieces.length; i++) {
            bytes[i*2] = (byte)((pieces[i] >> 8) & 0xFF);
            bytes[i*2+1] = (byte)(pieces[i] & 0xFF);
        }

        try {
            return InetAddress.getByAddress(bytes);
        } catch (UnknownHostException e) {
            // Can't happen if we pass the right amount of bytes
            throw new RuntimeException("BUG", e);
        }
    }
public InetAddress toInetAddress ( ) { final byte [ ] bytes = new byte [ 16 ] ; for ( int i = 0 ; i < pieces . length ; i ++ ) { bytes [ i * 2 ] = ( byte ) ( ( pieces [ i ] >> 8 ) & 0xFF ) ; bytes [ i * 2 + 1 ] = ( byte ) ( pieces [ i ] & 0xFF ) ; } try { return InetAddress . getByAddress ( bytes ) ; } catch ( UnknownHostException e ) { // Can't happen if we pass the right amount of bytes throw new RuntimeException ( "BUG" , e ) ; } }
Convert to @{java.net.InetAddress}.

@return The IPv6 address as a @{java.net.InetAddress}.
Convert to @ { java . net . InetAddress } .