org.walluck.oscar.handlers.icq
Class ICQUtil

java.lang.Object
  extended by org.walluck.oscar.handlers.icq.ICQUtil

public class ICQUtil
extends Object

ICQ utilities.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
ICQUtil()
           
 
Method Summary
static String escapeXML(String s)
          Escapes a string that is going to be used in an XML document.
static String getAgeRange(int i)
          Get the age range with the given code.
static String getBackground(int i)
          Get the background with the given code.
static String getCountry(int i)
          Get the country with the given code.
static String getInterest(int i)
          Get the interest with the given code.
static String getLanguage(int i)
          Get the language with the given code.
static String getSex(int i)
          Get the sex with the given code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICQUtil

public ICQUtil()
Method Detail

getSex

public static String getSex(int i)
Get the sex with the given code.

Parameters:
i - the sex code
Returns:
the sex string

getLanguage

public static String getLanguage(int i)
Get the language with the given code.

Parameters:
i - the language code
Returns:
the language string

getCountry

public static String getCountry(int i)
Get the country with the given code.

Parameters:
i - the country code
Returns:
the country string

getInterest

public static String getInterest(int i)
Get the interest with the given code.

Parameters:
i - the interest code
Returns:
the interest string

getBackground

public static String getBackground(int i)
Get the background with the given code.

Parameters:
i - the background code
Returns:
the background string

getAgeRange

public static String getAgeRange(int i)
Get the age range with the given code.

Parameters:
i - the age range code
Returns:
the age range string

escapeXML

public static String escapeXML(String s)
Escapes a string that is going to be used in an XML document.

Parameters:
s - the string
Returns:
the XML escaped string