|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.speech.freetts.FreeTTSSpeakableImpl
Minimal implementation of a FreeTTSSpeakable
| Constructor Summary | |
FreeTTSSpeakableImpl(org.w3c.dom.Document doc)
Constructor. |
|
FreeTTSSpeakableImpl(java.io.InputStream is)
Constructor. |
|
FreeTTSSpeakableImpl(java.lang.String text)
Constructor. |
|
| Method Summary | |
void |
cancelled()
Indicates that this speakable has been cancelled. |
void |
completed()
Indicates that this speakable has been completed. |
org.w3c.dom.Document |
getDocument()
Gets the DOM document for this object. |
java.io.InputStream |
getInputStream()
Gets the input stream. |
java.lang.String |
getText()
Returns the text corresponding to this Playable. |
boolean |
isCompleted()
Returns true if this queue item has been processed. |
boolean |
isDocument()
Returns true if the item is a JSML document
(Java Speech Markup Language). |
boolean |
isPlainText()
Returns true if the item contains plain text
(not Java Speech Markup Language text). |
boolean |
isStream()
Returns true if the item is an input stream. |
void |
started()
Indicate that this speakable has been started. |
boolean |
waitCompleted()
Waits for this speakable item to be completed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FreeTTSSpeakableImpl(java.lang.String text)
text - the text to be spokenpublic FreeTTSSpeakableImpl(org.w3c.dom.Document doc)
doc - the doc to be spokenpublic FreeTTSSpeakableImpl(java.io.InputStream is)
is - the doc to be spoken| Method Detail |
public void started()
started in interface FreeTTSSpeakablepublic void completed()
completed in interface FreeTTSSpeakablepublic void cancelled()
cancelled in interface FreeTTSSpeakablepublic boolean isCompleted()
isCompleted in interface FreeTTSSpeakablepublic boolean waitCompleted()
waitCompleted in interface FreeTTSSpeakablepublic boolean isPlainText()
true if the item contains plain text
(not Java Speech Markup Language text).
isPlainText in interface FreeTTSSpeakablepublic java.lang.String getText()
getText in interface FreeTTSSpeakablepublic org.w3c.dom.Document getDocument()
getDocument in interface FreeTTSSpeakablepublic boolean isStream()
true if the item is an input stream.
isStream in interface FreeTTSSpeakablepublic java.io.InputStream getInputStream()
getInputStream in interface FreeTTSSpeakablepublic boolean isDocument()
true if the item is a JSML document
(Java Speech Markup Language).
isDocument in interface FreeTTSSpeakable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||