org.dfdaemon.il2.core.util
Class StringUtils
java.lang.Object
org.dfdaemon.il2.core.util.StringUtils
public class StringUtils
- extends Object
- Author:
- Ivan Luzyanin
|
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 |
StringUtils
public StringUtils()
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 stringescapeSpace - if true space will be encoded too.
- Returns:
- encoded to ascii string
Copyright © 2007-2008. All Rights Reserved.