public class UnicodeUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
UnicodeUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
checkUTFSignature(java.io.InputStream inputStream)
Reads a signature if it applies.
|
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
public static java.lang.String checkUTFSignature(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input stream of the unicode filejava.io.IOException
- if errors occur when reading bytes from the input streamCopyright © 2008 Actuate Corp. All rights reserved.