Instances of this class are singletons, one per encoding being recognized. They are created in the main CharsetDetector class and kept in the global list of available encodings to be checked. The specific encoding being recognized is determined by subclass.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | CharsetRecog_mbcs.CharsetRecog_big5
Big5 charset recognizer. |
| pack-priv abstract static class | CharsetRecog_mbcs.CharsetRecog_euc
EUC charset recognizers. |
| pack-priv static class | CharsetRecog_mbcs.CharsetRecog_gb_18030
GB-18030 recognizer. |
| pack-priv static class | CharsetRecog_mbcs.CharsetRecog_sjis
Shift-JIS charset recognizer. |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract String | Returns: the charset name.Implements abstract com. |
| pack-priv int | Returns: Two values packed into one int (Damn java, anyhow)bits 0-7: the match confidence, ranging from 0-100 bits 8-15: The match reason, an enum-like value. The CharsetDetector, which contains the input text
to be checked for being in this charset. det, int[] commonChars)Test the match of this charset with the input text data which is obtained via the CharsetDetector object. |
| pack-priv abstract boolean | Returns: True if a character was returned, false at end of input.The iteratedChar "struct" into which the returned char is placed. it,The charset detector, which is needed to get at the input byte data
being iterated over. det)Get the next character (however many bytes it is) from the input data Subclasses for specific charset encodings must implement this function to get characters according to the rules of their encoding scheme. |
| CharsetRecog_mbcs | back to summary |
|---|---|
| pack-priv CharsetRecog_mbcs() | |
| getName | back to summary |
|---|---|
| pack-priv abstract String getName() Implements abstract com. Get the IANA name of this charset. | |
| match | back to summary |
|---|---|
| pack-priv int match(CharsetDetector det, int[] commonChars) Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
| |
| nextChar | back to summary |
|---|---|
| pack-priv abstract boolean nextChar(CharsetRecog_mbcs. Get the next character (however many bytes it is) from the input data Subclasses for specific charset encodings must implement this function to get characters according to the rules of their encoding scheme. This function is not a method of class iteratedChar only because that would require a lot of extra derived classes, which is awkward.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getLanguage()
Get the ISO language code for this charset.
|
| pack-priv String | getName()
Implements abstract com. |
| pack-priv CharsetMatch | match(CharsetDetector
The CharsetDetector, which contains the input text
to be checked for being in this charset. det)Implements abstract com. |
| pack-priv boolean | nextChar(CharsetRecog_mbcs.
The iteratedChar "struct" into which the returned char is placed. it,The charset detector, which is needed to get at the input byte data
being iterated over. det)Implements abstract com. |
| commonChars | back to summary |
|---|---|
| pack-priv static int[] commonChars | |
| CharsetRecog_big5 | back to summary |
|---|---|
| pack-priv CharsetRecog_big5() | |
| getLanguage | back to summary |
|---|---|
| public String getLanguage() Overrides com. Doc from com. Get the ISO language code for this charset. | |
| getName | back to summary |
|---|---|
| pack-priv String getName() Implements abstract com. Doc from com. Get the IANA name of this charset. | |
| match | back to summary |
|---|---|
| pack-priv CharsetMatch match(CharsetDetector det) Implements abstract com. Doc from com. Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
| |
| nextChar | back to summary |
|---|---|
| pack-priv boolean nextChar(CharsetRecog_mbcs. Implements abstract com. Doc from com. Get the next character (however many bytes it is) from the input data Subclasses for specific charset encodings must implement this function to get characters according to the rules of their encoding scheme. This function is not a method of class iteratedChar only because that would require a lot of extra derived classes, which is awkward.
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | CharsetRecog_mbcs.CharsetRecog_euc.CharsetRecog_euc_jp
The charset recognize for EUC-JP. |
| pack-priv static class | CharsetRecog_mbcs.CharsetRecog_euc.CharsetRecog_euc_kr
The charset recognize for EUC-KR. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | nextChar(CharsetRecog_mbcs.
The iteratedChar "struct" into which the returned char is placed. it,The charset detector, which is needed to get at the input byte data
being iterated over. det)Implements abstract com. |
| CharsetRecog_euc | back to summary |
|---|---|
| pack-priv CharsetRecog_euc() | |
| nextChar | back to summary |
|---|---|
| pack-priv boolean nextChar(CharsetRecog_mbcs. Implements abstract com. Doc from com. Get the next character (however many bytes it is) from the input data Subclasses for specific charset encodings must implement this function to get characters according to the rules of their encoding scheme. This function is not a method of class iteratedChar only because that would require a lot of extra derived classes, which is awkward.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getLanguage()
Get the ISO language code for this charset.
|
| pack-priv String | getName()
Implements abstract com. |
| pack-priv CharsetMatch | match(CharsetDetector
The CharsetDetector, which contains the input text
to be checked for being in this charset. det)Implements abstract com. |
| commonChars | back to summary |
|---|---|
| pack-priv static int[] commonChars | |
| CharsetRecog_euc_jp | back to summary |
|---|---|
| pack-priv CharsetRecog_euc_jp() | |
| getLanguage | back to summary |
|---|---|
| public String getLanguage() Overrides com. Doc from com. Get the ISO language code for this charset. | |
| getName | back to summary |
|---|---|
| pack-priv String getName() Implements abstract com. Doc from com. Get the IANA name of this charset. | |
| match | back to summary |
|---|---|
| pack-priv CharsetMatch match(CharsetDetector det) Implements abstract com. Doc from com. Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getLanguage()
Get the ISO language code for this charset.
|
| pack-priv String | getName()
Implements abstract com. |
| pack-priv CharsetMatch | match(CharsetDetector
The CharsetDetector, which contains the input text
to be checked for being in this charset. det)Implements abstract com. |
| commonChars | back to summary |
|---|---|
| pack-priv static int[] commonChars | |
| CharsetRecog_euc_kr | back to summary |
|---|---|
| pack-priv CharsetRecog_euc_kr() | |
| getLanguage | back to summary |
|---|---|
| public String getLanguage() Overrides com. Doc from com. Get the ISO language code for this charset. | |
| getName | back to summary |
|---|---|
| pack-priv String getName() Implements abstract com. Doc from com. Get the IANA name of this charset. | |
| match | back to summary |
|---|---|
| pack-priv CharsetMatch match(CharsetDetector det) Implements abstract com. Doc from com. Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getLanguage()
Get the ISO language code for this charset.
|
| pack-priv String | getName()
Implements abstract com. |
| pack-priv CharsetMatch | match(CharsetDetector
The CharsetDetector, which contains the input text
to be checked for being in this charset. det)Implements abstract com. |
| pack-priv boolean | nextChar(CharsetRecog_mbcs.
The iteratedChar "struct" into which the returned char is placed. it,The charset detector, which is needed to get at the input byte data
being iterated over. det)Implements abstract com. |
| commonChars | back to summary |
|---|---|
| pack-priv static int[] commonChars | |
| CharsetRecog_gb_18030 | back to summary |
|---|---|
| pack-priv CharsetRecog_gb_18030() | |
| getLanguage | back to summary |
|---|---|
| public String getLanguage() Overrides com. Doc from com. Get the ISO language code for this charset. | |
| getName | back to summary |
|---|---|
| pack-priv String getName() Implements abstract com. Doc from com. Get the IANA name of this charset. | |
| match | back to summary |
|---|---|
| pack-priv CharsetMatch match(CharsetDetector det) Implements abstract com. Doc from com. Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
| |
| nextChar | back to summary |
|---|---|
| pack-priv boolean nextChar(CharsetRecog_mbcs. Implements abstract com. Doc from com. Get the next character (however many bytes it is) from the input data Subclasses for specific charset encodings must implement this function to get characters according to the rules of their encoding scheme. This function is not a method of class iteratedChar only because that would require a lot of extra derived classes, which is awkward.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getLanguage()
Get the ISO language code for this charset.
|
| pack-priv String | getName()
Implements abstract com. |
| pack-priv CharsetMatch | match(CharsetDetector
The CharsetDetector, which contains the input text
to be checked for being in this charset. det)Implements abstract com. |
| pack-priv boolean | nextChar(CharsetRecog_mbcs.
The iteratedChar "struct" into which the returned char is placed. it,The charset detector, which is needed to get at the input byte data
being iterated over. det)Implements abstract com. |
| commonChars | back to summary |
|---|---|
| pack-priv static int[] commonChars | |
| CharsetRecog_sjis | back to summary |
|---|---|
| pack-priv CharsetRecog_sjis() | |
| getLanguage | back to summary |
|---|---|
| public String getLanguage() Overrides com. Doc from com. Get the ISO language code for this charset. | |
| getName | back to summary |
|---|---|
| pack-priv String getName() Implements abstract com. Doc from com. Get the IANA name of this charset. | |
| match | back to summary |
|---|---|
| pack-priv CharsetMatch match(CharsetDetector det) Implements abstract com. Doc from com. Test the match of this charset with the input text data which is obtained via the CharsetDetector object.
| |
| nextChar | back to summary |
|---|---|
| pack-priv boolean nextChar(CharsetRecog_mbcs. Implements abstract com. Doc from com. Get the next character (however many bytes it is) from the input data Subclasses for specific charset encodings must implement this function to get characters according to the rules of their encoding scheme. This function is not a method of class iteratedChar only because that would require a lot of extra derived classes, which is awkward.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv void |
| charValue | back to summary |
|---|---|
| pack-priv int charValue | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| error | back to summary |
|---|---|
| pack-priv boolean error | |
| nextIndex | back to summary |
|---|---|
| pack-priv int nextIndex | |
| iteratedChar | back to summary |
|---|---|
| pack-priv iteratedChar() | |
| nextByte | back to summary |
|---|---|
| pack-priv int nextByte(CharsetDetector det) | |
| reset | back to summary |
|---|---|
| pack-priv void reset() | |