DESY ACOP Beans Home

com.cosylab.util
Class StringUnicoder

java.lang.Object
  extended by com.cosylab.util.StringUnicoder

public class StringUnicoder
extends java.lang.Object

This class provides converter from any character to unicode escape code. The GUI for the encoder is added as inner class.

Version:
$id$
Author:
Gasper Pajor

Constructor Summary
StringUnicoder()
           
 
Method Summary
static java.lang.String convertUnicodeString(java.lang.String str, boolean convertAscii)
          Converts input string into unicode escape code.
static void main(java.lang.String[] args)
          Run test applet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUnicoder

public StringUnicoder()
Method Detail

main

public static void main(java.lang.String[] args)
Run test applet.

Parameters:
args - command line parameters

convertUnicodeString

public static java.lang.String convertUnicodeString(java.lang.String str,
                                                    boolean convertAscii)
Converts input string into unicode escape code.

Parameters:
str - the string to be converted
convertAscii - wheather to also convert ascii charcters
Returns:
converted String


Copyright © 2010. All Rights Reserved.