Package oracle.i18n.lcsd
Class LCSDResultSet
- java.lang.Object
-
- oracle.i18n.lcsd.LCSDResultSet
-
public class LCSDResultSet extends Object
TheLCSDResultSetclass stores the result generated by theLCSDetectorclass. Methods in this class can be used to retrieve specific information from the result.- Since:
- 10.1.0.2
- See Also:
LCSDetector
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHiHitPairs()Returns the number of top ranking pairs that have close ratios for the detection.StringgetIANACharacterSet()Returns the IANA character set name of the one with the best detection result.StringgetIANACharacterSet(int rank)Returns the IANA character set name of the one with the ranked detection result.StringgetISOLanguage()Returns the ISO language name of the one with the best detection.StringgetISOLanguage(int rank)Returns the ISO language name of the one with the ranked detection result.StringgetJavaCharacterSet()Returns the Java character set name of the one with the best detection result.StringgetJavaCharacterSet(int rank)Returns the Java character set name of the one with the ranked detection result.StringgetORACharacterSet()Returns the Oracle character set name of the one with the best detection result.StringgetORACharacterSet(int rank)Returns the Oracle character set name of the one with the ranked detection result.StringgetORALanguage()Returns the Oracle language name of the one with the best detection result.StringgetORALanguage(int rank)Returns the Oracle language name of the one with the ranked detection result.floatgetRatio()floatgetRatio(int rank)intgetSize()Returns the number of result pairs that have a ratio greater than zero.
-
-
-
Method Detail
-
getISOLanguage
public String getISOLanguage()
Returns the ISO language name of the one with the best detection. Note thatzh_TWis for Traditional Chinese andzhis for Simplified Chinese.- Returns:
- The ISO language name for the best match based on the detection result. The empty string is returned if more sampling data is required.
-
getISOLanguage
public String getISOLanguage(int rank)
Returns the ISO language name of the one with the ranked detection result. Note thatzh_TWis for Traditional Chinese andzhis for Simplified Chinese.- Parameters:
rank- the rank of the ISO language that you want returned;rank=2returns the second best match- Returns:
- the ISO language name for the given rank. The empty string is returned if more sampling data is required.
-
getORALanguage
public String getORALanguage()
Returns the Oracle language name of the one with the best detection result. If the language is not supported by Oracle, it is eliminated and the next best match supported by Oracle will be used.- Returns:
- The Oracle language name for the best match based on the detection result. The empty string is returned if more sampling data is required.
-
getORALanguage
public String getORALanguage(int rank)
Returns the Oracle language name of the one with the ranked detection result. If the language is not supported by Oracle, it is eliminated and the next best match supported by Oracle will be used.- Parameters:
rank- the ranking of the Oracle language that you want returned;rank=2returns the second best match- Returns:
- The Oracle language name for the given
rank,nullif the language is not supported by Oracle. The empty string is returned if more sampling data is required.
-
getIANACharacterSet
public String getIANACharacterSet()
Returns the IANA character set name of the one with the best detection result.- Returns:
- The IANA character set name for the best match based on the detection result. The empty string is returned if more sampling data is required.
-
getIANACharacterSet
public String getIANACharacterSet(int rank)
Returns the IANA character set name of the one with the ranked detection result.- Parameters:
rank- the ranking of the ISO character that you want returned;rank=2returns the second best match- Returns:
- The IANA character set name for the given
rank. The empty string is returned if more sampling data is required.
-
getORACharacterSet
public String getORACharacterSet()
Returns the Oracle character set name of the one with the best detection result.- Returns:
- The Oracle character set name for the best match based on the
detection result;
nullif the character set is not supported by Oracle. The empty string is returned if more sampling data is required.
-
getORACharacterSet
public String getORACharacterSet(int rank)
Returns the Oracle character set name of the one with the ranked detection result.- Parameters:
rank- the ranking of the Oracle character that you want returned;rank=2returns the second best match- Returns:
- The Oracle character set name for the given
rank,nullif the character set is not supported by Oracle. The empty string is returned if more sampling data is required.
-
getJavaCharacterSet
public String getJavaCharacterSet()
Returns the Java character set name of the one with the best detection result.- Returns:
- The Java character set name for the best match based on the detection result. The empty string is returned if more sampling data is required.
-
getJavaCharacterSet
public String getJavaCharacterSet(int rank)
Returns the Java character set name of the one with the ranked detection result.- Parameters:
rank- the ranking of the Java character set that you want returned;rank=2returns the second best match- Returns:
- The Java character set name for the given
rank. The empty string is returned if more sampling data is required.
-
getHiHitPairs
public int getHiHitPairs()
Returns the number of top ranking pairs that have close ratios for the detection. The maximum is 3. For example, 2 means there are two language/character set pairs having close high ratios for the detection.- Returns:
- The number of top ranking pairs that have close ratios for the detection. Zero will be returned if input sample is insufficient for language/charset detection
-
getSize
public int getSize()
Returns the number of result pairs that have a ratio greater than zero.- Returns:
- The total number of language/character set pairs from the cumulated statistic that have a ratio greater than zero.
-
getRatio
public float getRatio()
-
getRatio
public float getRatio(int rank)
-
-