org.walluck.oscar.handlers.icq
Class ICQUtil

java.lang.Object
  extended byorg.walluck.oscar.handlers.icq.ICQUtil

public class ICQUtil
extends java.lang.Object

ICQ utilities.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
ICQUtil()
           
 
Method Summary
static java.lang.String escapeXML(java.lang.String s)
          Escapes a string that is going to be used in an XML document.
static java.lang.String getAgeRange(int i)
          Get the age range with the given code.
static java.lang.String getBackground(int i)
          Get the background with the given code.
static java.lang.String getCountry(int i)
          Get the country with the given code.
static java.lang.String getInterest(int i)
          Get the interest with the given code.
static java.lang.String getLanguage(int i)
          Get the language with the given code.
static java.lang.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 java.lang.String getSex(int i)
Get the sex with the given code.

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

getLanguage

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

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

getCountry

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

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

getInterest

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

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

getBackground

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

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

getAgeRange

public static java.lang.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 java.lang.String escapeXML(java.lang.String s)
Escapes a string that is going to be used in an XML document.

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