net.sf.dexterim.msn.util
Class SpecialCharacters

java.lang.Object
  extended bynet.sf.dexterim.msn.util.SpecialCharacters

public class SpecialCharacters
extends java.lang.Object

Description of the Class

Author:
christoph

Constructor Summary
protected SpecialCharacters()
          Creates a new instance of SpecialCharacters
 
Method Summary
 java.lang.String decode(java.lang.String str)
          Description of the Method
 java.lang.String decode(java.lang.String str, boolean urldecode)
          Description of the Method
 java.lang.String encode(java.lang.String str)
          Description of the Method
 java.lang.String encode(java.lang.String str, boolean urlencode)
          Description of the Method
protected  java.lang.String getDecodedChar(int index)
           
protected  java.lang.String getEncodedChar(int index)
           
static SpecialCharacters getInstance()
          Gets the instance attribute of the SpecialCharacters class
protected  void initialize(java.util.List encodedChars, java.util.List decodedChars)
           
 java.lang.String replace(java.lang.String string, java.lang.String a, java.lang.String b)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecialCharacters

protected SpecialCharacters()
Creates a new instance of SpecialCharacters

Method Detail

initialize

protected final void initialize(java.util.List encodedChars,
                                java.util.List decodedChars)

getInstance

public static SpecialCharacters getInstance()
Gets the instance attribute of the SpecialCharacters class

Returns:
The instance value

decode

public java.lang.String decode(java.lang.String str)
Description of the Method

Parameters:
str - Description of the Parameter
Returns:
Description of the Return Value

decode

public java.lang.String decode(java.lang.String str,
                               boolean urldecode)
Description of the Method

Parameters:
str - Description of the Parameter
urldecode - Description of the Parameter
Returns:
Description of the Return Value

encode

public java.lang.String encode(java.lang.String str)
Description of the Method

Parameters:
str - Description of the Parameter
Returns:
Description of the Return Value

encode

public java.lang.String encode(java.lang.String str,
                               boolean urlencode)
Description of the Method

Parameters:
str - Description of the Parameter
urlencode - Description of the Parameter
Returns:
Description of the Return Value

getEncodedChar

protected java.lang.String getEncodedChar(int index)

getDecodedChar

protected java.lang.String getDecodedChar(int index)

replace

public java.lang.String replace(java.lang.String string,
                                java.lang.String a,
                                java.lang.String b)
Description of the Method

Parameters:
a - Description of the Parameter
b - Description of the Parameter
Returns:
Description of the Return Value


Copyright © 2003-2004 Dexter IM Team. All Rights Reserved.