edu.cs.ai.kreator.control.config
Class EncodingTools

java.lang.Object
  extended by edu.cs.ai.kreator.control.config.EncodingTools

public abstract class EncodingTools
extends java.lang.Object

This class provides some methods for encoding to UTF-8 and back to the system's standard encoding.

Author:
Matthias Thimm

Constructor Summary
EncodingTools()
           
 
Method Summary
static java.lang.String encodeFromStandardToUTF8(java.lang.String str)
          Encodes a string in the system's default encoding into a string encoded in UTF-8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodingTools

public EncodingTools()
Method Detail

encodeFromStandardToUTF8

public static java.lang.String encodeFromStandardToUTF8(java.lang.String str)
                                                 throws java.lang.IllegalArgumentException
Encodes a string in the system's default encoding into a string encoded in UTF-8.

Parameters:
str - a string.
Returns:
a string.
Throws:
java.lang.IllegalArgumentException - if the encoding failed.