Package oracle.i18n.lcsd
Class LCSDResultSet
- java.lang.Object
-
- oracle.i18n.lcsd.LCSDResultSet
-
public class LCSDResultSet extends Object
TheLCSDResultSet
class stores the result generated by theLCSDetector
class. 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 int
getHiHitPairs()
Returns the number of top ranking pairs that have close ratios for the detection.String
getIANACharacterSet()
Returns the IANA character set name of the one with the best detection result.String
getIANACharacterSet(int rank)
Returns the IANA character set name of the one with the ranked detection result.String
getISOLanguage()
Returns the ISO language name of the one with the best detection.String
getISOLanguage(int rank)
Returns the ISO language name of the one with the ranked detection result.String
getJavaCharacterSet()
Returns the Java character set name of the one with the best detection result.String
getJavaCharacterSet(int rank)
Returns the Java character set name of the one with the ranked detection result.String
getORACharacterSet()
Returns the Oracle character set name of the one with the best detection result.String
getORACharacterSet(int rank)
Returns the Oracle character set name of the one with the ranked detection result.String
getORALanguage()
Returns the Oracle language name of the one with the best detection result.String
getORALanguage(int rank)
Returns the Oracle language name of the one with the ranked detection result.float
getRatio()
float
getRatio(int rank)
int
getSize()
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_TW
is for Traditional Chinese andzh
is 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_TW
is for Traditional Chinese andzh
is for Simplified Chinese.- Parameters:
rank
- the rank of the ISO language that you want returned;rank=2
returns 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=2
returns the second best match- Returns:
- The Oracle language name for the given
rank
,null
if 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=2
returns 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;
null
if 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=2
returns the second best match- Returns:
- The Oracle character set name for the given
rank
,null
if 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=2
returns 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)
-
-