ide/src/wombat/gui/text/sta/SharedTextArea.java
public static int decodeAddressPort(String str) {
		try {
			byte[] bytes = Base64.decode(str);
			return ((((int) bytes[4]) + 128) * 256) + (((int) bytes[5]) + 128);
		} catch (Exception e) {
			ErrorManager.logError("Unable decode port from address: " + e);
			e.printStackTrace();
		}
		return -1;
	}
/**
	 * Get the port out of an encoded string.
	 * @param str The encoded string.
	 * @return The port
	 */
Get the port out of an encoded string.
@param str The encoded string.
@return The port
Get the port out of an encoded string . @param str The encoded string . @return The port
public static int decodeAddressPort(String str) {
		try {
			byte[] bytes = Base64.decode(str);
			return ((((int) bytes[4]) + 128) * 256) + (((int) bytes[5]) + 128);
		} catch (Exception e) {
			ErrorManager.logError("Unable decode port from address: " + e);
			e.printStackTrace();
		}
		return -1;
	}
public static int decodeAddressPort ( String str ) { try { byte [ ] bytes = Base64 . decode ( str ) ; return ( ( ( ( int ) bytes [ 4 ] ) + 128 ) * 256 ) + ( ( ( int ) bytes [ 5 ] ) + 128 ) ; } catch ( Exception e ) { ErrorManager . logError ( "Unable decode port from address: " + e ) ; e . printStackTrace ( ) ; } return - 1 ; }
Get the port out of an encoded string.
Get the port out of an encoded string .