|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.util.UnicodeUtil
public class UnicodeUtil
The utility class to handle Unicode encoding and signatures.
Field Summary | |
---|---|
static java.lang.String |
SIGNATURE_UCS4_BIG
The signature for the UCS4 Big Endian files. |
static java.lang.String |
SIGNATURE_UCS4_LITTLE
The signature for the UCS4 Little Endian files. |
static java.lang.String |
SIGNATURE_UNICODE_BIG
The signature for the Unicode Big Endian files. |
static java.lang.String |
SIGNATURE_UNICODE_LITTLE
The signature for the Unicode Little Endian files. |
static java.lang.String |
SIGNATURE_UTF_8
The signature for the UTF-8 files. |
Constructor Summary | |
---|---|
UnicodeUtil()
|
Method Summary | |
---|---|
static java.lang.String |
checkUTFSignature(java.io.InputStream inputStream)
Reads a signature if it applies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SIGNATURE_UTF_8
public static final java.lang.String SIGNATURE_UNICODE_BIG
public static final java.lang.String SIGNATURE_UNICODE_LITTLE
public static final java.lang.String SIGNATURE_UCS4_BIG
public static final java.lang.String SIGNATURE_UCS4_LITTLE
Constructor Detail |
---|
public UnicodeUtil()
Method Detail |
---|
public static java.lang.String checkUTFSignature(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input stream of the unicode file
java.io.IOException
- if errors occur when reading bytes from the input stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |