Top Description Inners Constructors Methods
com.ibm.icu.text

pack-priv abstract Class CharsetRecog_Unicode

extends CharsetRecognizer
Class Inheritance
Known Direct Subclasses
com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_16_BE, com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_16_LE, com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32

This class matches UTF-16 and UTF-32, both big- and little-endian. The BOM will be used if it is present.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv abstract static class
pack-priv static class
pack-priv static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
adjustConfidence(int codeUnit, int confidence)

pack-priv static int
codeUnit16FromBytes(byte hi, byte lo)

pack-priv abstract String
getName()

Implements abstract com.ibm.icu.text.CharsetRecognizer.getName.

Get the IANA name of this charset.
pack-priv abstract CharsetMatch
match(CharsetDetector
The CharsetDetector, which contains the input text to be checked for being in this charset.
det
)

Implements abstract com.ibm.icu.text.CharsetRecognizer.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
Inherited from com.ibm.icu.text.CharsetRecognizer:
getLanguage

Constructor Detail

CharsetRecog_Unicodeback to summary
pack-priv CharsetRecog_Unicode()

Method Detail

adjustConfidenceback to summary
pack-priv static int adjustConfidence(int codeUnit, int confidence)
codeUnit16FromBytesback to summary
pack-priv static int codeUnit16FromBytes(byte hi, byte lo)
getNameback to summary
pack-priv abstract String getName()

Implements abstract com.ibm.icu.text.CharsetRecognizer.getName.

Doc from com.ibm.icu.text.CharsetRecognizer.getName.

Get the IANA name of this charset.

Returns:String

the charset name.

Annotations
@Override
matchback to summary
pack-priv abstract CharsetMatch match(CharsetDetector det)

Implements abstract com.ibm.icu.text.CharsetRecognizer.match.

Doc from com.ibm.icu.text.CharsetRecognizer.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.

Parameters
det:CharsetDetector

The CharsetDetector, which contains the input text to be checked for being in this charset.

Returns:CharsetMatch

A CharsetMatch object containing details of match with this charset, or null if there was no match.

Annotations
@Override
com.ibm.icu.text back to summary

pack-priv Class CharsetRecog_Unicode.CharsetRecog_UTF_16_BE

extends CharsetRecog_Unicode
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv String
getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.getName.

Get the IANA name of this charset.
pack-priv CharsetMatch
match(CharsetDetector
The CharsetDetector, which contains the input text to be checked for being in this charset.
det
)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
Inherited from com.ibm.icu.text.CharsetRecog_Unicode:
adjustConfidencecodeUnit16FromBytes

Constructor Detail

CharsetRecog_UTF_16_BEback to summary
pack-priv CharsetRecog_UTF_16_BE()

Method Detail

getNameback to summary
pack-priv String getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.getName.

Doc from com.ibm.icu.text.CharsetRecognizer.getName.

Get the IANA name of this charset.

Returns:String

the charset name.

Annotations
@Override
matchback to summary
pack-priv CharsetMatch match(CharsetDetector det)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.match.

Doc from com.ibm.icu.text.CharsetRecognizer.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.

Parameters
det:CharsetDetector

The CharsetDetector, which contains the input text to be checked for being in this charset.

Returns:CharsetMatch

A CharsetMatch object containing details of match with this charset, or null if there was no match.

Annotations
@Override
com.ibm.icu.text back to summary

pack-priv Class CharsetRecog_Unicode.CharsetRecog_UTF_16_LE

extends CharsetRecog_Unicode
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv String
getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.getName.

Get the IANA name of this charset.
pack-priv CharsetMatch
match(CharsetDetector
The CharsetDetector, which contains the input text to be checked for being in this charset.
det
)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
Inherited from com.ibm.icu.text.CharsetRecog_Unicode:
adjustConfidencecodeUnit16FromBytes

Constructor Detail

CharsetRecog_UTF_16_LEback to summary
pack-priv CharsetRecog_UTF_16_LE()

Method Detail

getNameback to summary
pack-priv String getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.getName.

Doc from com.ibm.icu.text.CharsetRecognizer.getName.

Get the IANA name of this charset.

Returns:String

the charset name.

Annotations
@Override
matchback to summary
pack-priv CharsetMatch match(CharsetDetector det)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.match.

Doc from com.ibm.icu.text.CharsetRecognizer.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.

Parameters
det:CharsetDetector

The CharsetDetector, which contains the input text to be checked for being in this charset.

Returns:CharsetMatch

A CharsetMatch object containing details of match with this charset, or null if there was no match.

Annotations
@Override
com.ibm.icu.text back to summary

pack-priv abstract Class CharsetRecog_Unicode.CharsetRecog_UTF_32

extends CharsetRecog_Unicode
Class Inheritance
Known Direct Subclasses
com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32_BE, com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32_LE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract int
getChar(byte[] input, int index)

pack-priv abstract String
getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.getName.

Get the IANA name of this charset.
pack-priv CharsetMatch
match(CharsetDetector
The CharsetDetector, which contains the input text to be checked for being in this charset.
det
)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
Inherited from com.ibm.icu.text.CharsetRecog_Unicode:
adjustConfidencecodeUnit16FromBytes

Constructor Detail

CharsetRecog_UTF_32back to summary
pack-priv CharsetRecog_UTF_32()

Method Detail

getCharback to summary
pack-priv abstract int getChar(byte[] input, int index)
getNameback to summary
pack-priv abstract String getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.getName.

Doc from com.ibm.icu.text.CharsetRecognizer.getName.

Get the IANA name of this charset.

Returns:String

the charset name.

Annotations
@Override
matchback to summary
pack-priv CharsetMatch match(CharsetDetector det)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.match.

Doc from com.ibm.icu.text.CharsetRecognizer.match.

Test the match of this charset with the input text data which is obtained via the CharsetDetector object.

Parameters
det:CharsetDetector

The CharsetDetector, which contains the input text to be checked for being in this charset.

Returns:CharsetMatch

A CharsetMatch object containing details of match with this charset, or null if there was no match.

Annotations
@Override
com.ibm.icu.text back to summary

pack-priv Class CharsetRecog_Unicode.CharsetRecog_UTF_32_BE

extends CharsetRecog_UTF_32
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv String
getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32.getName.

Get the IANA name of this charset.
Inherited from com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32:
match

Constructor Detail

CharsetRecog_UTF_32_BEback to summary
pack-priv CharsetRecog_UTF_32_BE()

Method Detail

getCharback to summary
pack-priv int getChar(byte[] input, int index)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32.getChar.

Annotations
@Override
getNameback to summary
pack-priv String getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32.getName.

Doc from com.ibm.icu.text.CharsetRecognizer.getName.

Get the IANA name of this charset.

Returns:String

the charset name.

Annotations
@Override
com.ibm.icu.text back to summary

pack-priv Class CharsetRecog_Unicode.CharsetRecog_UTF_32_LE

extends CharsetRecog_UTF_32
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv String
getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32.getName.

Get the IANA name of this charset.
Inherited from com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32:
match

Constructor Detail

CharsetRecog_UTF_32_LEback to summary
pack-priv CharsetRecog_UTF_32_LE()

Method Detail

getCharback to summary
pack-priv int getChar(byte[] input, int index)

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32.getChar.

Annotations
@Override
getNameback to summary
pack-priv String getName()

Implements abstract com.ibm.icu.text.CharsetRecog_Unicode.CharsetRecog_UTF_32.getName.

Doc from com.ibm.icu.text.CharsetRecognizer.getName.

Get the IANA name of this charset.

Returns:String

the charset name.

Annotations
@Override