upstream version 1.2.2
[debian/freetts] / javadoc / com / sun / speech / engine / synthesis / text / TextSynthesizer.OutputHandler.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
2 <!--NewPage-->\r
3 <HTML>\r
4 <HEAD>\r
5 <!-- Generated by javadoc (build 1.4.2_16) on Mon Mar 09 18:20:29 CET 2009 -->\r
6 <TITLE>\r
7 TextSynthesizer.OutputHandler (FreeTTS 1.2)\r
8 </TITLE>\r
9 \r
10 <META NAME="keywords" CONTENT="com.sun.speech.engine.synthesis.text.TextSynthesizer.OutputHandler class">\r
11 \r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">\r
13 \r
14 <SCRIPT type="text/javascript">\r
15 function windowTitle()\r
16 {\r
17     parent.document.title="TextSynthesizer.OutputHandler (FreeTTS 1.2)";\r
18 }\r
19 </SCRIPT>\r
20 \r
21 </HEAD>\r
22 \r
23 <BODY BGCOLOR="white" onload="windowTitle();">\r
24 \r
25
26 <!-- ========= START OF TOP NAVBAR ======= -->\r
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
30 <TR>\r
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
34   <TR ALIGN="center" VALIGN="top">\r
35   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
36   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
37   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
39   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
42   </TR>\r
43 </TABLE>\r
44 </TD>\r
45 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
46 </EM>\r
47 </TD>\r
48 </TR>\r
49 \r
50 <TR>\r
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
52 &nbsp;<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.html" title="class in com.sun.speech.engine.synthesis.text"><B>PREV CLASS</B></A>&nbsp;\r
53 &nbsp;<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerModeDesc.html" title="class in com.sun.speech.engine.synthesis.text"><B>NEXT CLASS</B></A></FONT></TD>\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
55   <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
56 &nbsp;<A HREF="TextSynthesizer.OutputHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
57 &nbsp;<SCRIPT type="text/javascript">\r
58   <!--\r
59   if(window==top) {\r
60     document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
61   }\r
62   //-->\r
63 </SCRIPT>\r
64 <NOSCRIPT>\r
65   <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
66 </NOSCRIPT>
67 \r
68 </FONT></TD>\r
69 </TR>\r
70 <TR>\r
71 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
72   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
74 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
75 </TR>\r
76 </TABLE>\r
77 <A NAME="skip-navbar_top"></A>
78 <!-- ========= END OF TOP NAVBAR ========= -->\r
79 \r
80 <HR>\r
81 <!-- ======== START OF CLASS DATA ======== -->\r
82 <H2>\r
83 <FONT SIZE="-1">\r
84 com.sun.speech.engine.synthesis.text</FONT>\r
85 <BR>\r
86 Class TextSynthesizer.OutputHandler</H2>\r
87 <PRE>\r
88 java.lang.Object\r
89   <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by">java.lang.Thread\r
90       <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.engine.synthesis.text.TextSynthesizer.OutputHandler</B>\r
91 </PRE>\r
92 <DL>\r
93 <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Runnable</DD>\r
94 </DL>\r
95 <DL>\r
96 <DT><B>Enclosing class:</B><DD><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizer</A></DD>\r
97 </DL>\r
98 <HR>\r
99 <DL>\r
100 <DT>public class <B>TextSynthesizer.OutputHandler</B><DT>extends java.lang.Thread</DL>\r
101 \r
102 <P>\r
103 The output device for a <code>TextSynthesizer</code>.  Sends
104  all text to standard out.\r
105 <P>\r
106 \r
107 <P>\r
108 <HR>\r
109 \r
110 <P>\r
111 <!-- ======== NESTED CLASS SUMMARY ======== -->\r
112 \r
113 \r
114 <!-- =========== FIELD SUMMARY =========== -->\r
115 \r
116 <A NAME="field_summary"><!-- --></A>
117 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
118 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
119 <TD COLSPAN=2><FONT SIZE="+2">\r
120 <B>Field Summary</B></FONT></TD>\r
121 </TR>\r
122 <TR BGCOLOR="white" CLASS="TableRowColor">\r
123 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
124 <CODE>protected static&nbsp;int</CODE></FONT></TD>\r
125 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#CANCEL">CANCEL</A></B></CODE>\r
126 \r
127 <BR>\r
128 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
129 </TR>\r
130 <TR BGCOLOR="white" CLASS="TableRowColor">\r
131 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
132 <CODE>protected static&nbsp;int</CODE></FONT></TD>\r
133 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#CANCEL_ALL">CANCEL_ALL</A></B></CODE>\r
134 \r
135 <BR>\r
136 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
137 </TR>\r
138 <TR BGCOLOR="white" CLASS="TableRowColor">\r
139 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
140 <CODE>protected static&nbsp;int</CODE></FONT></TD>\r
141 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#CANCEL_COMPLETE">CANCEL_COMPLETE</A></B></CODE>\r
142 \r
143 <BR>\r
144 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
145 </TR>\r
146 <TR BGCOLOR="white" CLASS="TableRowColor">\r
147 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
148 <CODE>protected &nbsp;int</CODE></FONT></TD>\r
149 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#command">command</A></B></CODE>\r
150 \r
151 <BR>\r
152 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the item at the top of the queue, the output command reflects 
153  whether item should be PAUSE, RESUME, CANCEL.</TD>\r
154 </TR>\r
155 <TR BGCOLOR="white" CLASS="TableRowColor">\r
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
157 <CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>\r
158 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#commandLock">commandLock</A></B></CODE>\r
159 \r
160 <BR>\r
161 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Object on which accesses to the command must synchronize.</TD>\r
162 </TR>\r
163 <TR BGCOLOR="white" CLASS="TableRowColor">\r
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
165 <CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>\r
166 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#currentItemLock">currentItemLock</A></B></CODE>\r
167 \r
168 <BR>\r
169 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Object to lock on for setting the current item.</TD>\r
170 </TR>\r
171 <TR BGCOLOR="white" CLASS="TableRowColor">\r
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
173 <CODE>protected &nbsp;boolean</CODE></FONT></TD>\r
174 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#done">done</A></B></CODE>\r
175 \r
176 <BR>\r
177 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
178 </TR>\r
179 <TR BGCOLOR="white" CLASS="TableRowColor">\r
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
181 <CODE>protected static&nbsp;int</CODE></FONT></TD>\r
182 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#PAUSE">PAUSE</A></B></CODE>\r
183 \r
184 <BR>\r
185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
186 </TR>\r
187 <TR BGCOLOR="white" CLASS="TableRowColor">\r
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
189 <CODE>protected &nbsp;java.util.Vector</CODE></FONT></TD>\r
190 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#queue">queue</A></B></CODE>\r
191 \r
192 <BR>\r
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal speech output queue that will contain a set of 
194  TextSynthesizerQueueItems.</TD>\r
195 </TR>\r
196 <TR BGCOLOR="white" CLASS="TableRowColor">\r
197 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
198 <CODE>protected static&nbsp;int</CODE></FONT></TD>\r
199 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#RESUME">RESUME</A></B></CODE>\r
200 \r
201 <BR>\r
202 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
203 </TR>\r
204 </TABLE>\r
205 &nbsp;<A NAME="fields_inherited_from_class_java.lang.Thread"><!-- --></A>
206 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
207 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
208 <TD><B>Fields inherited from class java.lang.Thread</B></TD>\r
209 </TR>\r
210 <TR BGCOLOR="white" CLASS="TableRowColor">\r
211 <TD><CODE>MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY</CODE></TD>\r
212 </TR>\r
213 </TABLE>\r
214 &nbsp;\r
215 <!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
216 \r
217 <A NAME="constructor_summary"><!-- --></A>
218 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
219 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
220 <TD COLSPAN=2><FONT SIZE="+2">\r
221 <B>Constructor Summary</B></FONT></TD>\r
222 </TR>\r
223 <TR BGCOLOR="white" CLASS="TableRowColor">\r
224 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#TextSynthesizer.OutputHandler()">TextSynthesizer.OutputHandler</A></B>()</CODE>\r
225 \r
226 <BR>\r
227 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class constructor.</TD>\r
228 </TR>\r
229 </TABLE>\r
230 &nbsp;\r
231 <!-- ========== METHOD SUMMARY =========== -->\r
232 \r
233 <A NAME="method_summary"><!-- --></A>
234 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
235 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
236 <TD COLSPAN=2><FONT SIZE="+2">\r
237 <B>Method Summary</B></FONT></TD>\r
238 </TR>\r
239 <TR BGCOLOR="white" CLASS="TableRowColor">\r
240 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
241 <CODE>&nbsp;void</CODE></FONT></TD>\r
242 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#appendQueue(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem)">appendQueue</A></B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item)</CODE>\r
243 \r
244 <BR>\r
245 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an item to be spoken to the output queue.</TD>\r
246 </TR>\r
247 <TR BGCOLOR="white" CLASS="TableRowColor">\r
248 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
249 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
250 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#cancelAllItems()">cancelAllItems</A></B>()</CODE>\r
251 \r
252 <BR>\r
253 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cancels all items.</TD>\r
254 </TR>\r
255 <TR BGCOLOR="white" CLASS="TableRowColor">\r
256 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
257 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
258 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#cancelItem()">cancelItem</A></B>()</CODE>\r
259 \r
260 <BR>\r
261 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cancels the current item.</TD>\r
262 </TR>\r
263 <TR BGCOLOR="white" CLASS="TableRowColor">\r
264 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
265 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
266 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#cancelItem(int)">cancelItem</A></B>(int&nbsp;cancelType)</CODE>\r
267 \r
268 <BR>\r
269 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cancels all or just the current item.</TD>\r
270 </TR>\r
271 <TR BGCOLOR="white" CLASS="TableRowColor">\r
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
273 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
274 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#cancelItem(java.lang.Object)">cancelItem</A></B>(java.lang.Object&nbsp;source)</CODE>\r
275 \r
276 <BR>\r
277 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cancels the given item.</TD>\r
278 </TR>\r
279 <TR BGCOLOR="white" CLASS="TableRowColor">\r
280 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
281 <CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD>\r
282 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#enumerateQueue()">enumerateQueue</A></B>()</CODE>\r
283 \r
284 <BR>\r
285 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current queue.</TD>\r
286 </TR>\r
287 <TR BGCOLOR="white" CLASS="TableRowColor">\r
288 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
289 <CODE>protected &nbsp;<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A></CODE></FONT></TD>\r
290 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#getQueueItem()">getQueueItem</A></B>()</CODE>\r
291 \r
292 <BR>\r
293 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns, but does not remove, the first item on the queue.</TD>\r
294 </TR>\r
295 <TR BGCOLOR="white" CLASS="TableRowColor">\r
296 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
297 <CODE>protected &nbsp;boolean</CODE></FONT></TD>\r
298 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#isCommand(java.lang.String, int)">isCommand</A></B>(java.lang.String&nbsp;engineText,
299           int&nbsp;index)</CODE>\r
300 \r
301 <BR>\r
302 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if the next thing in line is a command.</TD>\r
303 </TR>\r
304 <TR BGCOLOR="white" CLASS="TableRowColor">\r
305 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
306 <CODE>&nbsp;boolean</CODE></FONT></TD>\r
307 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#isQueueEmpty()">isQueueEmpty</A></B>()</CODE>\r
308 \r
309 <BR>\r
310 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if the queue is empty.</TD>\r
311 </TR>\r
312 <TR BGCOLOR="white" CLASS="TableRowColor">\r
313 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
314 <CODE>protected &nbsp;boolean</CODE></FONT></TD>\r
315 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#isWhitespace(java.lang.String, int)">isWhitespace</A></B>(java.lang.String&nbsp;engineText,
316              int&nbsp;index)</CODE>\r
317 \r
318 <BR>\r
319 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if there is whitespace at the current index.</TD>\r
320 </TR>\r
321 <TR BGCOLOR="white" CLASS="TableRowColor">\r
322 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
323 <CODE>protected &nbsp;int</CODE></FONT></TD>\r
324 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#outputItem(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem)">outputItem</A></B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item)</CODE>\r
325 \r
326 <BR>\r
327 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts outputting the item.  </TD>\r
328 </TR>\r
329 <TR BGCOLOR="white" CLASS="TableRowColor">\r
330 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
331 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
332 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#pauseItem()">pauseItem</A></B>()</CODE>\r
333 \r
334 <BR>\r
335 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pauses the output.</TD>\r
336 </TR>\r
337 <TR BGCOLOR="white" CLASS="TableRowColor">\r
338 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
339 <CODE>protected &nbsp;int</CODE></FONT></TD>\r
340 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#processCommand(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem, java.lang.String, int)">processCommand</A></B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item,
341                java.lang.String&nbsp;engineText,
342                int&nbsp;index)</CODE>\r
343 \r
344 <BR>\r
345 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to process a command starting at the next character
346  in the synthesizer text. </TD>\r
347 </TR>\r
348 <TR BGCOLOR="white" CLASS="TableRowColor">\r
349 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
350 <CODE>protected &nbsp;int</CODE></FONT></TD>\r
351 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#processNormalText(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem, java.lang.String, int)">processNormalText</A></B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item,
352                   java.lang.String&nbsp;engineText,
353                   int&nbsp;index)</CODE>\r
354 \r
355 <BR>\r
356 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processes next set of characters in output up to whitespace
357  or next '/' that could indicate the start of a command.</TD>\r
358 </TR>\r
359 <TR BGCOLOR="white" CLASS="TableRowColor">\r
360 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
361 <CODE>protected &nbsp;int</CODE></FONT></TD>\r
362 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#processWhitespace(java.lang.String, int)">processWhitespace</A></B>(java.lang.String&nbsp;engineText,
363                   int&nbsp;index)</CODE>\r
364 \r
365 <BR>\r
366 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processes whitespace at the current index in the synthesizer text.
367  </TD>\r
368 </TR>\r
369 <TR BGCOLOR="white" CLASS="TableRowColor">\r
370 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
371 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
372 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#resumeItem()">resumeItem</A></B>()</CODE>\r
373 \r
374 <BR>\r
375 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resumes the output.</TD>\r
376 </TR>\r
377 <TR BGCOLOR="white" CLASS="TableRowColor">\r
378 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
379 <CODE>&nbsp;void</CODE></FONT></TD>\r
380 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#run()">run</A></B>()</CODE>\r
381 \r
382 <BR>\r
383 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls output of text until terminate is called.</TD>\r
384 </TR>\r
385 <TR BGCOLOR="white" CLASS="TableRowColor">\r
386 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
387 <CODE>&nbsp;void</CODE></FONT></TD>\r
388 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#terminate()">terminate</A></B>()</CODE>\r
389 \r
390 <BR>\r
391 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stops execution of the Thread.</TD>\r
392 </TR>\r
393 </TABLE>\r
394 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Thread"><!-- --></A>
395 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
396 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
397 <TD><B>Methods inherited from class java.lang.Thread</B></TD>\r
398 </TR>\r
399 <TR BGCOLOR="white" CLASS="TableRowColor">\r
400 <TD><CODE>activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield</CODE></TD>\r
401 </TR>\r
402 </TABLE>\r
403 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
404 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
405 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
406 <TD><B>Methods inherited from class java.lang.Object</B></TD>\r
407 </TR>\r
408 <TR BGCOLOR="white" CLASS="TableRowColor">\r
409 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>\r
410 </TR>\r
411 </TABLE>\r
412 &nbsp;\r
413 <P>\r
414 \r
415 <!-- ============ FIELD DETAIL =========== -->\r
416 \r
417 <A NAME="field_detail"><!-- --></A>
418 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
419 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
420 <TD COLSPAN=1><FONT SIZE="+2">\r
421 <B>Field Detail</B></FONT></TD>\r
422 </TR>\r
423 </TABLE>\r
424 \r
425 <A NAME="done"><!-- --></A><H3>\r
426 done</H3>\r
427 <PRE>\r
428 protected boolean <B>done</B></PRE>\r
429 <DL>\r
430 <DL>\r
431 </DL>\r
432 </DL>\r
433 <HR>\r
434 \r
435 <A NAME="queue"><!-- --></A><H3>\r
436 queue</H3>\r
437 <PRE>\r
438 protected java.util.Vector <B>queue</B></PRE>\r
439 <DL>\r
440 <DD>Internal speech output queue that will contain a set of 
441  TextSynthesizerQueueItems.\r
442 <P>\r
443 <DL>\r
444 <DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/speech/engine/synthesis/BaseSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis"><CODE>BaseSynthesizerQueueItem</CODE></A></DL>\r
445 </DL>\r
446 <HR>\r
447 \r
448 <A NAME="currentItemLock"><!-- --></A><H3>\r
449 currentItemLock</H3>\r
450 <PRE>\r
451 protected java.lang.Object <B>currentItemLock</B></PRE>\r
452 <DL>\r
453 <DD>Object to lock on for setting the current item.\r
454 <P>\r
455 <DL>\r
456 </DL>\r
457 </DL>\r
458 <HR>\r
459 \r
460 <A NAME="command"><!-- --></A><H3>\r
461 command</H3>\r
462 <PRE>\r
463 protected int <B>command</B></PRE>\r
464 <DL>\r
465 <DD>For the item at the top of the queue, the output command reflects 
466  whether item should be PAUSE, RESUME, CANCEL.\r
467 <P>\r
468 <DL>\r
469 </DL>\r
470 </DL>\r
471 <HR>\r
472 \r
473 <A NAME="PAUSE"><!-- --></A><H3>\r
474 PAUSE</H3>\r
475 <PRE>\r
476 protected static final int <B>PAUSE</B></PRE>\r
477 <DL>\r
478 <DL>\r
479 <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.speech.engine.synthesis.text.TextSynthesizer.OutputHandler.PAUSE">Constant Field Values</A></DL>\r
480 </DL>\r
481 <HR>\r
482 \r
483 <A NAME="RESUME"><!-- --></A><H3>\r
484 RESUME</H3>\r
485 <PRE>\r
486 protected static final int <B>RESUME</B></PRE>\r
487 <DL>\r
488 <DL>\r
489 <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.speech.engine.synthesis.text.TextSynthesizer.OutputHandler.RESUME">Constant Field Values</A></DL>\r
490 </DL>\r
491 <HR>\r
492 \r
493 <A NAME="CANCEL"><!-- --></A><H3>\r
494 CANCEL</H3>\r
495 <PRE>\r
496 protected static final int <B>CANCEL</B></PRE>\r
497 <DL>\r
498 <DL>\r
499 <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.speech.engine.synthesis.text.TextSynthesizer.OutputHandler.CANCEL">Constant Field Values</A></DL>\r
500 </DL>\r
501 <HR>\r
502 \r
503 <A NAME="CANCEL_ALL"><!-- --></A><H3>\r
504 CANCEL_ALL</H3>\r
505 <PRE>\r
506 protected static final int <B>CANCEL_ALL</B></PRE>\r
507 <DL>\r
508 <DL>\r
509 <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.speech.engine.synthesis.text.TextSynthesizer.OutputHandler.CANCEL_ALL">Constant Field Values</A></DL>\r
510 </DL>\r
511 <HR>\r
512 \r
513 <A NAME="CANCEL_COMPLETE"><!-- --></A><H3>\r
514 CANCEL_COMPLETE</H3>\r
515 <PRE>\r
516 protected static final int <B>CANCEL_COMPLETE</B></PRE>\r
517 <DL>\r
518 <DL>\r
519 <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.speech.engine.synthesis.text.TextSynthesizer.OutputHandler.CANCEL_COMPLETE">Constant Field Values</A></DL>\r
520 </DL>\r
521 <HR>\r
522 \r
523 <A NAME="commandLock"><!-- --></A><H3>\r
524 commandLock</H3>\r
525 <PRE>\r
526 protected java.lang.Object <B>commandLock</B></PRE>\r
527 <DL>\r
528 <DD>Object on which accesses to the command must synchronize.\r
529 <P>\r
530 <DL>\r
531 </DL>\r
532 </DL>\r
533 \r
534 <!-- ========= CONSTRUCTOR DETAIL ======== -->\r
535 \r
536 <A NAME="constructor_detail"><!-- --></A>
537 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
538 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
539 <TD COLSPAN=1><FONT SIZE="+2">\r
540 <B>Constructor Detail</B></FONT></TD>\r
541 </TR>\r
542 </TABLE>\r
543 \r
544 <A NAME="TextSynthesizer.OutputHandler()"><!-- --></A><H3>\r
545 TextSynthesizer.OutputHandler</H3>\r
546 <PRE>\r
547 public <B>TextSynthesizer.OutputHandler</B>()</PRE>\r
548 <DL>\r
549 <DD>Class constructor.\r
550 <P>\r
551 </DL>\r
552 \r
553 <!-- ============ METHOD DETAIL ========== -->\r
554 \r
555 <A NAME="method_detail"><!-- --></A>
556 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
557 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
558 <TD COLSPAN=1><FONT SIZE="+2">\r
559 <B>Method Detail</B></FONT></TD>\r
560 </TR>\r
561 </TABLE>\r
562 \r
563 <A NAME="terminate()"><!-- --></A><H3>\r
564 terminate</H3>\r
565 <PRE>\r
566 public void <B>terminate</B>()</PRE>\r
567 <DL>\r
568 <DD>Stops execution of the Thread.\r
569 <P>\r
570 <DD><DL>\r
571 </DL>\r
572 </DD>\r
573 </DL>\r
574 <HR>\r
575 \r
576 <A NAME="enumerateQueue()"><!-- --></A><H3>\r
577 enumerateQueue</H3>\r
578 <PRE>\r
579 public java.util.Enumeration <B>enumerateQueue</B>()</PRE>\r
580 <DL>\r
581 <DD>Returns the current queue.\r
582 <P>\r
583 <DD><DL>\r
584
585 <DT><B>Returns:</B><DD>the current queue</DL>\r
586 </DD>\r
587 </DL>\r
588 <HR>\r
589 \r
590 <A NAME="isQueueEmpty()"><!-- --></A><H3>\r
591 isQueueEmpty</H3>\r
592 <PRE>\r
593 public boolean <B>isQueueEmpty</B>()</PRE>\r
594 <DL>\r
595 <DD>Determines if the queue is empty.\r
596 <P>\r
597 <DD><DL>\r
598
599 <DT><B>Returns:</B><DD><code>true</code> if the queue is empty</DL>\r
600 </DD>\r
601 </DL>\r
602 <HR>\r
603 \r
604 <A NAME="appendQueue(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem)"><!-- --></A><H3>\r
605 appendQueue</H3>\r
606 <PRE>\r
607 public void <B>appendQueue</B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item)</PRE>\r
608 <DL>\r
609 <DD>Adds an item to be spoken to the output queue.\r
610 <P>\r
611 <DD><DL>\r
612 <DT><B>Parameters:</B><DD><CODE>item</CODE> - the item to be added</DL>\r
613 </DD>\r
614 </DL>\r
615 <HR>\r
616 \r
617 <A NAME="cancelItem()"><!-- --></A><H3>\r
618 cancelItem</H3>\r
619 <PRE>\r
620 protected void <B>cancelItem</B>()</PRE>\r
621 <DL>\r
622 <DD>Cancels the current item.\r
623 <P>\r
624 <DD><DL>\r
625 </DL>\r
626 </DD>\r
627 </DL>\r
628 <HR>\r
629 \r
630 <A NAME="cancelAllItems()"><!-- --></A><H3>\r
631 cancelAllItems</H3>\r
632 <PRE>\r
633 protected void <B>cancelAllItems</B>()</PRE>\r
634 <DL>\r
635 <DD>Cancels all items.\r
636 <P>\r
637 <DD><DL>\r
638 </DL>\r
639 </DD>\r
640 </DL>\r
641 <HR>\r
642 \r
643 <A NAME="cancelItem(int)"><!-- --></A><H3>\r
644 cancelItem</H3>\r
645 <PRE>\r
646 protected void <B>cancelItem</B>(int&nbsp;cancelType)</PRE>\r
647 <DL>\r
648 <DD>Cancels all or just the current item.\r
649 <P>\r
650 <DD><DL>\r
651 <DT><B>Parameters:</B><DD><CODE>cancelType</CODE> - <code>CANCEL</code> or <code>CANCEL_ALL</code></DL>\r
652 </DD>\r
653 </DL>\r
654 <HR>\r
655 \r
656 <A NAME="cancelItem(java.lang.Object)"><!-- --></A><H3>\r
657 cancelItem</H3>\r
658 <PRE>\r
659 protected void <B>cancelItem</B>(java.lang.Object&nbsp;source)</PRE>\r
660 <DL>\r
661 <DD>Cancels the given item.\r
662 <P>\r
663 <DD><DL>\r
664 <DT><B>Parameters:</B><DD><CODE>source</CODE> - the item to cancel</DL>\r
665 </DD>\r
666 </DL>\r
667 <HR>\r
668 \r
669 <A NAME="pauseItem()"><!-- --></A><H3>\r
670 pauseItem</H3>\r
671 <PRE>\r
672 protected void <B>pauseItem</B>()</PRE>\r
673 <DL>\r
674 <DD>Pauses the output.\r
675 <P>\r
676 <DD><DL>\r
677 </DL>\r
678 </DD>\r
679 </DL>\r
680 <HR>\r
681 \r
682 <A NAME="resumeItem()"><!-- --></A><H3>\r
683 resumeItem</H3>\r
684 <PRE>\r
685 protected void <B>resumeItem</B>()</PRE>\r
686 <DL>\r
687 <DD>Resumes the output.\r
688 <P>\r
689 <DD><DL>\r
690 </DL>\r
691 </DD>\r
692 </DL>\r
693 <HR>\r
694 \r
695 <A NAME="run()"><!-- --></A><H3>\r
696 run</H3>\r
697 <PRE>\r
698 public void <B>run</B>()</PRE>\r
699 <DL>\r
700 <DD>Controls output of text until terminate is called.\r
701 <P>\r
702 <DD><DL>\r
703 <DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.OutputHandler.html#terminate()"><CODE>terminate()</CODE></A></DL>\r
704 </DD>\r
705 </DL>\r
706 <HR>\r
707 \r
708 <A NAME="getQueueItem()"><!-- --></A><H3>\r
709 getQueueItem</H3>\r
710 <PRE>\r
711 protected <A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A> <B>getQueueItem</B>()</PRE>\r
712 <DL>\r
713 <DD>Returns, but does not remove, the first item on the queue.\r
714 <P>\r
715 <DD><DL>\r
716
717 <DT><B>Returns:</B><DD>the first item on the queue</DL>\r
718 </DD>\r
719 </DL>\r
720 <HR>\r
721 \r
722 <A NAME="outputItem(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem)"><!-- --></A><H3>\r
723 outputItem</H3>\r
724 <PRE>\r
725 protected int <B>outputItem</B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item)</PRE>\r
726 <DL>\r
727 <DD>Starts outputting the item.  Returns the current command.\r
728 <P>\r
729 <DD><DL>\r
730 <DT><B>Parameters:</B><DD><CODE>item</CODE> - to be output
731 <DT><B>Returns:</B><DD>the current command</DL>\r
732 </DD>\r
733 </DL>\r
734 <HR>\r
735 \r
736 <A NAME="isCommand(java.lang.String, int)"><!-- --></A><H3>\r
737 isCommand</H3>\r
738 <PRE>\r
739 protected boolean <B>isCommand</B>(java.lang.String&nbsp;engineText,
740                             int&nbsp;index)</PRE>\r
741 <DL>\r
742 <DD>Determines if the next thing in line is a command.\r
743 <P>\r
744 <DD><DL>\r
745 <DT><B>Parameters:</B><DD><CODE>engineText</CODE> - the text containing embedded commands<DD><CODE>index</CODE> - the current index
746 <DT><B>Returns:</B><DD><code>true</code> if the next thing in line is a command</DL>\r
747 </DD>\r
748 </DL>\r
749 <HR>\r
750 \r
751 <A NAME="processCommand(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem, java.lang.String, int)"><!-- --></A><H3>\r
752 processCommand</H3>\r
753 <PRE>\r
754 protected int <B>processCommand</B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item,
755                              java.lang.String&nbsp;engineText,
756                              int&nbsp;index)</PRE>\r
757 <DL>\r
758 <DD>Attempts to process a command starting at the next character
759  in the synthesizer text. Returns the new index.\r
760 <P>\r
761 <DD><DL>\r
762 <DT><B>Parameters:</B><DD><CODE>item</CODE> - the current queue item<DD><CODE>engineText</CODE> - the text containing embedded commands<DD><CODE>index</CODE> - the current index
763 <DT><B>Returns:</B><DD>the new index</DL>\r
764 </DD>\r
765 </DL>\r
766 <HR>\r
767 \r
768 <A NAME="isWhitespace(java.lang.String, int)"><!-- --></A><H3>\r
769 isWhitespace</H3>\r
770 <PRE>\r
771 protected boolean <B>isWhitespace</B>(java.lang.String&nbsp;engineText,
772                                int&nbsp;index)</PRE>\r
773 <DL>\r
774 <DD>Determines if there is whitespace at the current index.\r
775 <P>\r
776 <DD><DL>\r
777 <DT><B>Parameters:</B><DD><CODE>engineText</CODE> - the text containing embedded commands<DD><CODE>index</CODE> - the current index
778 <DT><B>Returns:</B><DD><code>true</code> if there is whitespace at the
779    current index</DL>\r
780 </DD>\r
781 </DL>\r
782 <HR>\r
783 \r
784 <A NAME="processWhitespace(java.lang.String, int)"><!-- --></A><H3>\r
785 processWhitespace</H3>\r
786 <PRE>\r
787 protected int <B>processWhitespace</B>(java.lang.String&nbsp;engineText,
788                                 int&nbsp;index)</PRE>\r
789 <DL>\r
790 <DD>Processes whitespace at the current index in the synthesizer text.
791  If next character is not whitespace, does nothing.
792  If next character is whitespace, displays it and pauses
793  briefly to simulate the speaking rate.\r
794 <P>\r
795 <DD><DL>\r
796 <DT><B>Parameters:</B><DD><CODE>engineText</CODE> - the text containing embedded commands<DD><CODE>index</CODE> - the current index
797 <DT><B>Returns:</B><DD>the new index</DL>\r
798 </DD>\r
799 </DL>\r
800 <HR>\r
801 \r
802 <A NAME="processNormalText(com.sun.speech.engine.synthesis.text.TextSynthesizerQueueItem, java.lang.String, int)"><!-- --></A><H3>\r
803 processNormalText</H3>\r
804 <PRE>\r
805 protected int <B>processNormalText</B>(<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerQueueItem.html" title="class in com.sun.speech.engine.synthesis.text">TextSynthesizerQueueItem</A>&nbsp;item,
806                                 java.lang.String&nbsp;engineText,
807                                 int&nbsp;index)</PRE>\r
808 <DL>\r
809 <DD>Processes next set of characters in output up to whitespace
810  or next '/' that could indicate the start of a command.\r
811 <P>\r
812 <DD><DL>\r
813 <DT><B>Parameters:</B><DD><CODE>item</CODE> - the current queue item<DD><CODE>engineText</CODE> - the text containing embedded commands<DD><CODE>index</CODE> - the current index
814 <DT><B>Returns:</B><DD>the new index</DL>\r
815 </DD>\r
816 </DL>\r
817 <!-- ========= END OF CLASS DATA ========= -->\r
818 <HR>\r
819 \r
820
821 <!-- ======= START OF BOTTOM NAVBAR ====== -->\r
822 <A NAME="navbar_bottom"><!-- --></A>
823 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
824 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
825 <TR>\r
826 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
827 <A NAME="navbar_bottom_firstrow"><!-- --></A>
828 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
829   <TR ALIGN="center" VALIGN="top">\r
830   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
831   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
832   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
833   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
834   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
835   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
836   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
837   </TR>\r
838 </TABLE>\r
839 </TD>\r
840 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
841 </EM>\r
842 </TD>\r
843 </TR>\r
844 \r
845 <TR>\r
846 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
847 &nbsp;<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizer.html" title="class in com.sun.speech.engine.synthesis.text"><B>PREV CLASS</B></A>&nbsp;\r
848 &nbsp;<A HREF="../../../../../../com/sun/speech/engine/synthesis/text/TextSynthesizerModeDesc.html" title="class in com.sun.speech.engine.synthesis.text"><B>NEXT CLASS</B></A></FONT></TD>\r
849 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
850   <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
851 &nbsp;<A HREF="TextSynthesizer.OutputHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
852 &nbsp;<SCRIPT type="text/javascript">\r
853   <!--\r
854   if(window==top) {\r
855     document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
856   }\r
857   //-->\r
858 </SCRIPT>\r
859 <NOSCRIPT>\r
860   <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
861 </NOSCRIPT>
862 \r
863 </FONT></TD>\r
864 </TR>\r
865 <TR>\r
866 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
867   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
868 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
869 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
870 </TR>\r
871 </TABLE>\r
872 <A NAME="skip-navbar_bottom"></A>
873 <!-- ======== END OF BOTTOM NAVBAR ======= -->\r
874 \r
875 <HR>\r
876 \r
877 </BODY>\r
878 </HTML>\r