public class UnicodeUtil
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
UnicodeUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.