com.wilko.jaim
Class Utils

java.lang.Object
  |
  +--com.wilko.jaim.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String encodeText(java.lang.String input)
          Encode a text message so that it is suitable for transmission using toc_send_im
static java.lang.String normalise(java.lang.String input)
          convert a buddy name to normalised format - remove spaces and convert to lower case
static java.lang.String roast(java.lang.String password)
          Roast a password using the AOL roasting protocol
static java.lang.String stripHTML(java.lang.String input)
          This method performs a simple HTML strip on text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

normalise

public static java.lang.String normalise(java.lang.String input)
convert a buddy name to normalised format - remove spaces and convert to lower case

Parameters:
input - The un-normalised buddy name
Returns:
the normalised buddy name

roast

public static java.lang.String roast(java.lang.String password)
Roast a password using the AOL roasting protocol

Parameters:
password - The password to be roasted
Returns:
The roasted password

stripHTML

public static java.lang.String stripHTML(java.lang.String input)
This method performs a simple HTML strip on text. It looks for < characters and then skips input until a matching > is found. This may fail if the HTML tag contains an embedded '>'

Parameters:
input - The text to have HTML stripped
Returns:
The text stripped of html

encodeText

public static java.lang.String encodeText(java.lang.String input)
Encode a text message so that it is suitable for transmission using toc_send_im

Parameters:
input - The text to be encoded
Returns:
The encoded text