info.informatica.util.charset
Class UTF8BOMTranslator

java.lang.Object
  extended by info.informatica.util.charset.UTF8BOMTranslator

public class UTF8BOMTranslator
extends Object


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

Constructor Detail

UTF8BOMTranslator

public UTF8BOMTranslator()
Method Detail

convert

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

getBOM

public static String getBOM(String enc)
                     throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException