|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.modules.InternalModule
marytts.modules.MaryXMLToText
public class MaryXMLToText
Create simple text from a rawmaryxml document.
| Field Summary |
|---|
| Fields inherited from class marytts.modules.InternalModule |
|---|
logger, state |
| Fields inherited from interface marytts.modules.MaryModule |
|---|
MODULE_OFFLINE, MODULE_RUNNING |
| Constructor Summary | |
|---|---|
MaryXMLToText()
|
|
| Method Summary | |
|---|---|
MaryData |
process(MaryData d)
Perform this module's processing on abstract "MaryData" input d. |
void |
startup()
Allow the module to start up, performing whatever is necessary to become operational. |
| Methods inherited from class marytts.modules.InternalModule |
|---|
getLocale, getState, inputType, name, outputType, powerOnSelfTest, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaryXMLToText()
| Method Detail |
|---|
public void startup()
throws java.lang.Exception
MaryModule
startup in interface MaryModulestartup in class InternalModulejava.lang.Exception
public MaryData process(MaryData d)
throws java.lang.Exception
InternalModuled.
Subclasses need to make sure that the process()
method is thread-safe, because in server-mode,
it will be called from different threads at the same time.
A sensible way to do this seems to be not to use any
global or static variables, or to use them read-only.
process in interface MaryModuleprocess in class InternalModuleoutputType() encapsulating the processing result.
This method just returns its input. Subclasses should override this.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||