|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.i18n.lcsd.LCSDetector
| Constructor Summary | |
LCSDetector()
Constructor. |
|
LCSDetector(String name)
Constructor which takes a profile name allows user to choose a different profile other than the default |
|
| Method Summary | |
void |
detect(byte[] input)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
int |
detect(byte[] input,
int offset,
int length)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
void |
detect(char[] input)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
int |
detect(char[] input,
int offset,
int length)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
void |
detect(InputStream input)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
int |
detect(InputStream input,
int length)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
void |
detect(String input)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
int |
detect(String input,
int length)
Statistical data is cumulated in an internal structure when the detect() methods are called. |
oracle.i18n.lcsd.LCSDResultSet |
getResult()
Determines the high hit language/character set pairs from the cumulated statistical data |
void |
reset()
To resetstatistical data for all pairs to 0. |
int |
setCharacterSetFilter(String charset)
Set character set filter if user know the character set of the input data. |
int |
setLanguageFilter(String language)
Set language filter if user knows the language of the input data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LCSDetector()
public LCSDetector(String name)
name - name of profile to use| Method Detail |
public int setCharacterSetFilter(String charset)
charset - ISO character set name.public int setLanguageFilter(String language)
public void detect(byte[] input)
input - the bytes to be sampled by detect
public int detect(byte[] input,
int offset,
int length)
input - the bytes to be sampled by detectoffset - the index of the first byte to samplelength - the number of bytes to sample
public void detect(InputStream input)
throws IOException
input - inputStream to be sampled by detect
IOException - if error occurs while doing operation on stream
public int detect(InputStream input,
int length)
throws IOException
input - inputStream to be sampled by detectlength - the number of bytes to sample
IOException - if error occurs while doing operation on streampublic void detect(String input)
public int detect(String input,
int length)
input - a string to be sampled by detectlength - the number of chars to sample
public void detect(char[] input)
input - the chars to be sampled by detect
public int detect(char[] input,
int offset,
int length)
input - the char array to be sampled by detectoffset - the index of the first char to samplelength - the number of chars to sample
public oracle.i18n.lcsd.LCSDResultSet getResult()
public void reset()
|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||