Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
D
E
G
N
P
S
T
V
C
characters(char[], int, int)
- Method in class net.spy.translate.
GoogleResultHandler
This method is for reading in character data and from an xml file and doing something with it.
composePost(String)
- Method in class net.spy.translate.
GoogleTranslateScraper
This method is used for composing the PostMethod needed for submitting the data to the google translate website.
D
doTranslate(String)
- Method in class net.spy.translate.
GoogleTranslateScraper
This method represents the soul of the translate scraper.
E
endElement(String, String, String)
- Method in class net.spy.translate.
GoogleResultHandler
This method is called whenever a tag is closed.
G
getAllModes()
- Static method in enum net.spy.translate.
TranslateMode
Get a collection of all language pair names.
getByLangPair(String)
- Static method in enum net.spy.translate.
TranslateMode
Get the TranslateMode by lang pair.
getCharSet()
- Method in class net.spy.translate.
GoogleResultHandler
Retrieve the character set encoding.
getLangPair()
- Method in enum net.spy.translate.
TranslateMode
getReadState()
- Method in class net.spy.translate.
GoogleResultHandler
protected method used for unit testing.
getResults()
- Method in class net.spy.translate.
GoogleResultHandler
This method is for fetching the results once all the parsing operations have completed succesfully.
getSourceLang()
- Method in enum net.spy.translate.
TranslateMode
GoogleResultHandler
- Class in
net.spy.translate
This class is the SAX handler implementation for parsing the results from the google translate website.
GoogleResultHandler()
- Constructor for class net.spy.translate.
GoogleResultHandler
GoogleTranslateScraper
- Class in
net.spy.translate
This class is the translation driver for using the Google Translate Scraper.
GoogleTranslateScraper()
- Constructor for class net.spy.translate.
GoogleTranslateScraper
Simple no argument constructor.
GoogleTranslateScraper(TranslateMode)
- Constructor for class net.spy.translate.
GoogleTranslateScraper
Overloaded constructor that takes a translation mode as an argument.
N
net.spy.translate
- package net.spy.translate
P
parseResults(InputStream)
- Method in class net.spy.translate.
GoogleTranslateScraper
This method sets up the tagsoup SAX compliant parser, the result handler, parses the results and tries to find the result string.
S
setCharSet(String)
- Method in class net.spy.translate.
GoogleResultHandler
Set the character set encoding.
setReadState(boolean)
- Method in class net.spy.translate.
GoogleResultHandler
protected method used for unit testing
setTranslateMode(TranslateMode)
- Method in class net.spy.translate.
GoogleTranslateScraper
Set/Change the translation mode.
startElement(String, String, String, Attributes)
- Method in class net.spy.translate.
GoogleResultHandler
This method is called whenever a new opening tag is parsed.
T
TranslateMode
- Enum in
net.spy.translate
This is the enumerated type that you must use to set the translation mode for the GoogleTranslateScraper.
TranslationException
- Exception in
net.spy.translate
TranslationException()
- Constructor for exception net.spy.translate.
TranslationException
TranslationException(String)
- Constructor for exception net.spy.translate.
TranslationException
TranslationException(Throwable)
- Constructor for exception net.spy.translate.
TranslationException
TranslationException(String, Throwable)
- Constructor for exception net.spy.translate.
TranslationException
V
valueOf(String)
- Static method in enum net.spy.translate.
TranslateMode
Returns the enum constant of this type with the specified name.
values()
- Static method in enum net.spy.translate.
TranslateMode
Returns an array containing the constants of this enum type, in the order they are declared.
C
D
E
G
N
P
S
T
V
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2008. All Rights Reserved.