|


|
|

|
|
Spellex SDK for JavaTM Technology
Overview - Features - Technical -
Languages - FAQ - Ordering
|
Technical details
The Spellex SDK for Java Technology Engine's API provides direct, straightforward
calling from Java applications, applets, and servlets.
Spellex's application program interface consists of various Java classes:
Class SpellingSession: Performs general-purpose spell checking
of words and strings. Major methods include:
|
check
|
Check the spelling of a word or String
|
getLexicons, setLexicons |
Get/set the set of lexicons (dictionaries) used to
check spelling. The set of lexicons is represented as an Array.
|
getOption, setOption |
Get/set option values:
|
suggest |
Locate suggested alternate spellings for a misspelled word. |
|
Classes FileTextLexicon, StreamTextLexicon, and MemTextLexicon
represent permanent (file or stream based) or temporary (memory
based) lexicons (dictionaries). Major methods include:
|
addWord |
Add a word to the lexicon. |
deleteWord |
Remove a word from the lexicon. |
words |
Enumerate the words in the lexicon. |
|
|
|
Classes StringWordParser and HTMLStringWordParser are
used to access and edit the words contained in a String.
HTMLStringWordParser is used to spell check HTML, skipping over the
markups and checking just the text. Major methods include:
|
deleteText |
Delete a specified number of characters from the text
starting at the current cursor position. |
deleteWord |
Delete the word at the cursor position. |
getCursor |
Obtain the current cursor position, expressed as an
offset from the start of the text. |
getNumReplacements |
Get the number of words replaced so far. |
getWord |
Obtain the word at the WordParser's current cursor position. |
insertText |
Insert text at a specified position. |
isDoubledWord |
Determine if the current word and the previous word
are identical, and that no punctuation appears between them. |
nextWord |
Obtain the current word and advance to the next word. |
replaceWord |
Replace the word at the current position with a new word. |
setCursor |
Set the cursor to a given position. |
toString |
Convert the text to String form. |
Overview - Features - Technical
- Languages - FAQ - Ordering
|
|
Home
| Order Now
| Products
| Benefits
| Compatibility
| Testimonials
Who Uses Spellex
| Contact Us
| About Spellex
| What's New
Spellex Corporation ©2001. All rights reserved.
All products and company names mentioned
herein are the trademarks of their respective owners.
Privacy Policy
|