ide/src/wombat/gui/text/sta/SharedTextArea.java
public static String encodeAddress(InetAddress host, int port) {
		return Base64.encodeBytes(new byte[]{
				host.getAddress()[0],
				host.getAddress()[1],
				host.getAddress()[2],
				host.getAddress()[3],
				(byte) ((port / 256) - 128),
				(byte) ((port % 256) - 128)
		});
	}
/**
	 * Encode an IP:port address as a Base64 string.
	 * @param host The host to encode
	 * @param port The port to encode
	 * @return The string.
	 */
Encode an IP:port address as a Base64 string.
@param host The host to encode
@param port The port to encode
@return The string.
Encode an IP : port address as a Base64 string . @param host The host to encode @param port The port to encode @return The string .
public static String encodeAddress(InetAddress host, int port) {
		return Base64.encodeBytes(new byte[]{
				host.getAddress()[0],
				host.getAddress()[1],
				host.getAddress()[2],
				host.getAddress()[3],
				(byte) ((port / 256) - 128),
				(byte) ((port % 256) - 128)
		});
	}
public static String encodeAddress ( InetAddress host , int port ) { return Base64 . encodeBytes ( new byte [ ] { host . getAddress ( ) [ 0 ] , host . getAddress ( ) [ 1 ] , host . getAddress ( ) [ 2 ] , host . getAddress ( ) [ 3 ] , ( byte ) ( ( port / 256 ) - 128 ) , ( byte ) ( ( port % 256 ) - 128 ) } ) ; }
Encode an IP:port address as a Base64 string.
Encode an IP : port address as a Base64 string .