eu.vexpro.editor.util
Class UnicodeUtil

java.lang.Object
  extended by eu.vexpro.editor.util.UnicodeUtil

public class UnicodeUtil
extends java.lang.Object

Workaround Sun-i bugile Kood: http://tripoverit.blogspot.com/2007/04/javas-utf-8-and-unicode-writing-is.html


Nested Class Summary
static class UnicodeUtil.UnicodeInputStream
           
 
Constructor Summary
UnicodeUtil()
           
 
Method Summary
static byte[] convert(byte[] bytes, java.lang.String encout)
           
static java.lang.String getBOM(java.lang.String enc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeUtil

public UnicodeUtil()
Method Detail

convert

public static byte[] convert(byte[] bytes,
                             java.lang.String encout)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getBOM

public static java.lang.String getBOM(java.lang.String enc)
                               throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException