SMILA (incubation) API documentation

org.eclipse.smila.utils.file
Class EncodingHelper

java.lang.Object
  extended by org.eclipse.smila.utils.file.EncodingHelper

public final class EncodingHelper
extends java.lang.Object

Utility class to help with common encoding problems.


Method Summary
static java.lang.String getEncoding(byte[] bom)
          Read bytes and detect encoding based on potential BOM marks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEncoding

public static java.lang.String getEncoding(byte[] bom)
Read bytes and detect encoding based on potential BOM marks.

Parameters:
bom - the byte[] to test
Returns:
the encoding of the file, or null if encoding could not be detected

SMILA (incubation) API documentation