org.dfdaemon.il2.core.util
Class StringUtils

java.lang.Object
  extended by org.dfdaemon.il2.core.util.StringUtils

public class StringUtils
extends Object

Author:
Ivan Luzyanin

Constructor Summary
StringUtils()
           
 
Method Summary
static String ascii2native(String theString)
          Converts encoded \uxxxx to unicode chars and changes special saved chars to their original forms
static String native2ascii(String theString, boolean escapeSpace)
          Converts unicodes to encoded \uxxxx and writes out any of the characters in special chars = \t\r\n\f# with a preceding slash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

ascii2native

public static String ascii2native(String theString)
Converts encoded \uxxxx to unicode chars and changes special saved chars to their original forms

Parameters:
theString - ascii encoded string
Returns:
decoded native (utf8) string

native2ascii

public static String native2ascii(String theString,
                                  boolean escapeSpace)
Converts unicodes to encoded \uxxxx and writes out any of the characters in special chars = \t\r\n\f# with a preceding slash

Parameters:
theString - native utf8 string
escapeSpace - if true space will be encoded too.
Returns:
encoded to ascii string


Copyright © 2007-2008. All Rights Reserved.