|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 spokenMethod Detail |
public void started()
started
in interface FreeTTSSpeakable
public void completed()
completed
in interface FreeTTSSpeakable
public void cancelled()
cancelled
in interface FreeTTSSpeakable
public boolean isCompleted()
isCompleted
in interface FreeTTSSpeakable
public boolean waitCompleted()
waitCompleted
in interface FreeTTSSpeakable
public boolean isPlainText()
true
if the item contains plain text
(not Java Speech Markup Language text).
isPlainText
in interface FreeTTSSpeakable
public java.lang.String getText()
getText
in interface FreeTTSSpeakable
public org.w3c.dom.Document getDocument()
getDocument
in interface FreeTTSSpeakable
public boolean isStream()
true
if the item is an input stream.
isStream
in interface FreeTTSSpeakable
public java.io.InputStream getInputStream()
getInputStream
in interface FreeTTSSpeakable
public 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 |