Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

oracle.i18n.lcsd
Class LCSDResultSet

java.lang.Object
  |
  +--oracle.i18n.lcsd.LCSDResultSet

public class LCSDResultSet
extends Object

The LCSDResultSet class is for storing the result generated by LCSDetector. Methods in this class can be used to retrieve specific information from the result.

Since:
Oracle 10.1.2
See Also:
LCSDetector

Method Summary
 int getHiHitPairs()
          Return the number of top ranking pairs which have close ratios for the detection.
 String getIANACharacterSet()
          Return the IANA character name of the one with the best detection result
 String getIANACharacterSet(int rank)
          Return the IANA character set name of the one with the best detection result
 String getISOLanguage()
          Return the ISO language name of the one with the best detection
 String getISOLanguage(int rank)
          Return the ISO language name of the one with the best detection result
 String getORACharacterSet()
          Return the Oracle character set name of the one with the best detection result
 String getORACharacterSet(int rank)
          Return the Oracle character set name of the one with the best detection result
 String getORALanguage()
          Return the Oracle language name of the one with the best detection result If the language is not supported by Oracle, it will be eliminated and the next best match supported by Oracle will be used.
 String getORALanguage(int rank)
          Return the Oracle language names name of the one with the best detection result If the language is not supported by Oracle, it will be eliminated and the next best match supported by Oracle will be used.
 float getRatio()
           
 float getRatio(int rank)
           
 int getSize()
          Return the number of result pairs that have a ratio greater than zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getISOLanguage

public String getISOLanguage()
Return the ISO language name of the one with the best detection

Returns:
the ISO language name for the best match based on the detection result

getISOLanguage

public String getISOLanguage(int rank)
Return the ISO language name of the one with the best detection result

Parameters:
rank - the rank of the ISO language which you want returned, rank =2 will return the second best match
Returns:
the ISO language name for the given rank

getORALanguage

public String getORALanguage()
Return the Oracle language name of the one with the best detection result If the language is not supported by Oracle, it will be 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

getORALanguage

public String getORALanguage(int rank)
Return the Oracle language names name of the one with the best detection result If the language is not supported by Oracle, it will be eliminated and the next best match supported by Oracle will be used.

Parameters:
rank - the ranking of the Oracle language which you want returned, rank =2 will return the second best match
Returns:
the Oracle language name for the given rank, null if the language is not supported by Oracle

getIANACharacterSet

public String getIANACharacterSet()
Return the IANA character name of the one with the best detection result

Returns:
the IANA character set name for the best match based on the detection result.

getIANACharacterSet

public String getIANACharacterSet(int rank)
Return the IANA character set name of the one with the best detection result

Parameters:
rank - the ranking of the ISO character which you want returned, rank =2 will return the second best match
Returns:
the IANA character set names for the given rank

getORACharacterSet

public String getORACharacterSet()
Return the Oracle character set name of the one with the best detection result

Returns:
the Oracle character name for the best match based on the detection result, null if the character set is not supported by Oracle

getORACharacterSet

public String getORACharacterSet(int rank)
Return the Oracle character set name of the one with the best detection result

Parameters:
rank - the ranking of the Oracle character which you want returned, rank =2 will return the second best match
Returns:
the Oracle character set names for the given rank, null if the character set is not supported by Oracle

getHiHitPairs

public int getHiHitPairs()
Return the number of top ranking pairs which have close ratios for the detection. The maximum is 3. For example, 2 means there are two language/character set pairs having the close high ratios for the detection.

Returns:
the number of top ranking pairs which have close ratios for the detection.

getSize

public int getSize()
Return 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)

Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.