com.ibm.icu.text
public class CharsetMatch extends Object implements Comparable
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Field Summary | |
---|---|
static int | BOM
Bit flag indicating the match is based on the presence of a BOM.
|
static int | DECLARED_ENCODING
Bit flag indicating he match is based on the declared encoding.
|
static int | ENCODING_SCHEME
Bit flag indicating the match is based on the the encoding scheme.
|
static int | LANG_STATISTICS
Bit flag indicating the match is based on language statistics.
|
Method Summary | |
---|---|
int | compareTo(Object o)
Compare to other CharsetMatch objects.
|
int | getConfidence()
Get an indication of the confidence in the charset detected.
|
String | getLanguage()
Get the ISO code for the language of the detected charset.
|
int | getMatchType()
Return flags indicating what it was about the input data
that caused this charset to be considered as a possible match.
|
String | getName()
Get the name of the detected charset.
|
Reader | getReader()
Create a java.io.Reader for reading the Unicode character data corresponding
to the original byte data supplied to the Charset detect operation.
|
String | getString()
Create a Java String from Unicode character data corresponding
to the original byte data supplied to the Charset detect operation.
|
String | getString(int maxLength)
Create a Java String from Unicode character data corresponding
to the original byte data supplied to the Charset detect operation.
|
See Also: CharsetMatch
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
See Also: CharsetMatch
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
See Also: CharsetMatch
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
See Also: CharsetMatch
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Parameters: o the CharsetMatch object to compare against.
Returns: a negative integer, zero, or a positive integer as the confidence level of this CharsetMatch is less than, equal to, or greater than that of the argument.
Throws: ClassCastException if the argument is not a CharsetMatch.
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Returns: the confidence in the charset match
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Returns: The ISO code for the language or null
if the language cannot be determined.
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Note: currently, this method always returns zero.
Returns: the type of match found for this charset.
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Returns: The name of the charset.
See Also: java.nio.charset.Charset java.io.InputStreamReader
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Returns: the Reader for the Unicode character data.
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Returns: a String created from the converted input data.
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.
Parameters: maxLength The maximium length of the String to be created when the source of the data is an input stream, or -1 for unlimited length.
Returns: a String created from the converted input data.
UNKNOWN: ICU 3.4 This API might change or be removed in a future release.