upstream version 1.2.2
[debian/freetts] / javadoc / com / sun / speech / freetts / util / Utilities.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:31 CET 2009 -->\r
6 <TITLE>\r
7 Utilities (FreeTTS 1.2)\r
8 </TITLE>\r
9 \r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.util.Utilities 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="Utilities (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/freetts/util/Timer.html" title="class in com.sun.speech.freetts.util"><B>PREV CLASS</B></A>&nbsp;\r
53 &nbsp;<A HREF="../../../../../com/sun/speech/freetts/util/WaveUtils.html" title="class in com.sun.speech.freetts.util"><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="Utilities.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;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
74 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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.freetts.util</FONT>\r
85 <BR>\r
86 Class Utilities</H2>\r
87 <PRE>\r
88 java.lang.Object\r
89   <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.util.Utilities</B>\r
90 </PRE>\r
91 <HR>\r
92 <DL>\r
93 <DT>public class <B>Utilities</B><DT>extends java.lang.Object</DL>\r
94 \r
95 <P>\r
96 Provides a set of generic utilities used by freetts.\r
97 <P>\r
98 \r
99 <P>\r
100 <HR>\r
101 \r
102 <P>\r
103 <!-- ======== NESTED CLASS SUMMARY ======== -->\r
104 \r
105 \r
106 <!-- =========== FIELD SUMMARY =========== -->\r
107 \r
108 \r
109 <!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
110 \r
111 \r
112 <!-- ========== METHOD SUMMARY =========== -->\r
113 \r
114 <A NAME="method_summary"><!-- --></A>
115 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
116 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
117 <TD COLSPAN=2><FONT SIZE="+2">\r
118 <B>Method Summary</B></FONT></TD>\r
119 </TR>\r
120 <TR BGCOLOR="white" CLASS="TableRowColor">\r
121 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
122 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>\r
123 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#deleteChar(java.lang.String, char)">deleteChar</A></B>(java.lang.String&nbsp;fromString,
124            char&nbsp;charToDelete)</CODE>\r
125 \r
126 <BR>\r
127 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes all instances of the specified character from the given String.</TD>\r
128 </TR>\r
129 <TR BGCOLOR="white" CLASS="TableRowColor">\r
130 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
131 <CODE>static&nbsp;void</CODE></FONT></TD>\r
132 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#dump(java.io.PrintWriter, int, java.lang.String)">dump</A></B>(java.io.PrintWriter&nbsp;pw,
133      int&nbsp;padding,
134      java.lang.String&nbsp;string)</CODE>\r
135 \r
136 <BR>\r
137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dumps padded text. </TD>\r
138 </TR>\r
139 <TR BGCOLOR="white" CLASS="TableRowColor">\r
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
141 <CODE>static&nbsp;boolean</CODE></FONT></TD>\r
142 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#getBoolean(java.lang.String)">getBoolean</A></B>(java.lang.String&nbsp;name)</CODE>\r
143 \r
144 <BR>\r
145 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a boolean property by name.</TD>\r
146 </TR>\r
147 <TR BGCOLOR="white" CLASS="TableRowColor">\r
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
149 <CODE>static&nbsp;java.io.InputStream</CODE></FONT></TD>\r
150 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#getInputStream(java.net.URL)">getInputStream</A></B>(java.net.URL&nbsp;url)</CODE>\r
151 \r
152 <BR>\r
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an input stream for the given URL. </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>static&nbsp;java.lang.Integer</CODE></FONT></TD>\r
158 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#getInteger(java.lang.String, int)">getInteger</A></B>(java.lang.String&nbsp;name,
159            int&nbsp;defaultValue)</CODE>\r
160 \r
161 <BR>\r
162 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets an Integer property by name.</TD>\r
163 </TR>\r
164 <TR BGCOLOR="white" CLASS="TableRowColor">\r
165 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
166 <CODE>static&nbsp;java.lang.Long</CODE></FONT></TD>\r
167 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#getLong(java.lang.String, long)">getLong</A></B>(java.lang.String&nbsp;name,
168         long&nbsp;defaultValue)</CODE>\r
169 \r
170 <BR>\r
171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a long property by name.</TD>\r
172 </TR>\r
173 <TR BGCOLOR="white" CLASS="TableRowColor">\r
174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
175 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>\r
176 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#getProperty(java.lang.String, java.lang.String)">getProperty</A></B>(java.lang.String&nbsp;name,
177             java.lang.String&nbsp;defaultValue)</CODE>\r
178 \r
179 <BR>\r
180 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a property by name and returns its value. </TD>\r
181 </TR>\r
182 <TR BGCOLOR="white" CLASS="TableRowColor">\r
183 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
184 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>\r
185 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#getString(java.nio.ByteBuffer)">getString</A></B>(java.nio.ByteBuffer&nbsp;bb)</CODE>\r
186 \r
187 <BR>\r
188 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inputs a string from a ByteBuffer.</TD>\r
189 </TR>\r
190 <TR BGCOLOR="white" CLASS="TableRowColor">\r
191 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
192 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>\r
193 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#getString(java.io.DataInputStream)">getString</A></B>(java.io.DataInputStream&nbsp;dis)</CODE>\r
194 \r
195 <BR>\r
196 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inputs a string from a DataInputStream.</TD>\r
197 </TR>\r
198 <TR BGCOLOR="white" CLASS="TableRowColor">\r
199 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
200 <CODE>static&nbsp;void</CODE></FONT></TD>\r
201 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#outString(java.io.DataOutputStream, java.lang.String)">outString</A></B>(java.io.DataOutputStream&nbsp;dos,
202           java.lang.String&nbsp;s)</CODE>\r
203 \r
204 <BR>\r
205 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Outputs a string to the given stream.</TD>\r
206 </TR>\r
207 <TR BGCOLOR="white" CLASS="TableRowColor">\r
208 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
209 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>\r
210 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#pad(int)">pad</A></B>(int&nbsp;padding)</CODE>\r
211 \r
212 <BR>\r
213 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string with the given number of
214  spaces.</TD>\r
215 </TR>\r
216 <TR BGCOLOR="white" CLASS="TableRowColor">\r
217 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
218 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>\r
219 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/util/Utilities.html#pad(java.lang.String, int)">pad</A></B>(java.lang.String&nbsp;string,
220     int&nbsp;minLength)</CODE>\r
221 \r
222 <BR>\r
223 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pads with spaces or truncates the given string to guarantee that it is
224  exactly the desired length.</TD>\r
225 </TR>\r
226 </TABLE>\r
227 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
228 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
229 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
230 <TD><B>Methods inherited from class java.lang.Object</B></TD>\r
231 </TR>\r
232 <TR BGCOLOR="white" CLASS="TableRowColor">\r
233 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>\r
234 </TR>\r
235 </TABLE>\r
236 &nbsp;\r
237 <P>\r
238 \r
239 <!-- ============ FIELD DETAIL =========== -->\r
240 \r
241 \r
242 <!-- ========= CONSTRUCTOR DETAIL ======== -->\r
243 \r
244 \r
245 <!-- ============ METHOD DETAIL ========== -->\r
246 \r
247 <A NAME="method_detail"><!-- --></A>
248 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
249 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
250 <TD COLSPAN=1><FONT SIZE="+2">\r
251 <B>Method Detail</B></FONT></TD>\r
252 </TR>\r
253 </TABLE>\r
254 \r
255 <A NAME="pad(int)"><!-- --></A><H3>\r
256 pad</H3>\r
257 <PRE>\r
258 public static java.lang.String <B>pad</B>(int&nbsp;padding)</PRE>\r
259 <DL>\r
260 <DD>Returns a string with the given number of
261  spaces.\r
262 <P>\r
263 <DD><DL>\r
264 <DT><B>Parameters:</B><DD><CODE>padding</CODE> - the number of spaces in the string
265 <DT><B>Returns:</B><DD>a string of length 'padding' containg only the SPACE
266  char.</DL>\r
267 </DD>\r
268 </DL>\r
269 <HR>\r
270 \r
271 <A NAME="pad(java.lang.String, int)"><!-- --></A><H3>\r
272 pad</H3>\r
273 <PRE>\r
274 public static java.lang.String <B>pad</B>(java.lang.String&nbsp;string,
275                                    int&nbsp;minLength)</PRE>\r
276 <DL>\r
277 <DD>Pads with spaces or truncates the given string to guarantee that it is
278  exactly the desired length.\r
279 <P>\r
280 <DD><DL>\r
281 <DT><B>Parameters:</B><DD><CODE>string</CODE> - the string to be padded<DD><CODE>minLength</CODE> - the desired length of the string
282 <DT><B>Returns:</B><DD>a string of length conntaining string
283  padded with whitespace or truncated</DL>\r
284 </DD>\r
285 </DL>\r
286 <HR>\r
287 \r
288 <A NAME="deleteChar(java.lang.String, char)"><!-- --></A><H3>\r
289 deleteChar</H3>\r
290 <PRE>\r
291 public static java.lang.String <B>deleteChar</B>(java.lang.String&nbsp;fromString,
292                                           char&nbsp;charToDelete)</PRE>\r
293 <DL>\r
294 <DD>Removes all instances of the specified character from the given String.\r
295 <P>\r
296 <DD><DL>\r
297 <DT><B>Parameters:</B><DD><CODE>fromString</CODE> - the String to delete characters from<DD><CODE>charToDelete</CODE> - the character to delete from the given String
298 <DT><B>Returns:</B><DD>a String with all instances of the specified char deleted</DL>\r
299 </DD>\r
300 </DL>\r
301 <HR>\r
302 \r
303 <A NAME="dump(java.io.PrintWriter, int, java.lang.String)"><!-- --></A><H3>\r
304 dump</H3>\r
305 <PRE>\r
306 public static void <B>dump</B>(java.io.PrintWriter&nbsp;pw,
307                         int&nbsp;padding,
308                         java.lang.String&nbsp;string)</PRE>\r
309 <DL>\r
310 <DD>Dumps padded text. This is a simple tool for helping dump text 
311  with padding to a Writer.\r
312 <P>\r
313 <DD><DL>\r
314 <DT><B>Parameters:</B><DD><CODE>pw</CODE> - the stream to send the output<DD><CODE>padding</CODE> - the number of spaces in the string<DD><CODE>string</CODE> - the string to output</DL>\r
315 </DD>\r
316 </DL>\r
317 <HR>\r
318 \r
319 <A NAME="getInputStream(java.net.URL)"><!-- --></A><H3>\r
320 getInputStream</H3>\r
321 <PRE>\r
322 public static java.io.InputStream <B>getInputStream</B>(java.net.URL&nbsp;url)
323                                           throws java.io.IOException</PRE>\r
324 <DL>\r
325 <DD>Returns an input stream for the given URL. If the URL
326  is pointing to a local file, returns a file input stream
327  suitable for MemoryMapped IO, otherwise, returns a buffered
328  input stream.\r
329 <P>\r
330 <DD><DL>\r
331 <DT><B>Parameters:</B><DD><CODE>url</CODE> - the url to open as a stream
332 <DT><B>Returns:</B><DD>the stream associated with the URL
333 <DT><B>Throws:</B>
334 <DD><CODE>java.io.IOException</CODE> - if there is trouble creating the stream</DL>\r
335 </DD>\r
336 </DL>\r
337 <HR>\r
338 \r
339 <A NAME="outString(java.io.DataOutputStream, java.lang.String)"><!-- --></A><H3>\r
340 outString</H3>\r
341 <PRE>\r
342 public static void <B>outString</B>(java.io.DataOutputStream&nbsp;dos,
343                              java.lang.String&nbsp;s)
344                       throws java.io.IOException</PRE>\r
345 <DL>\r
346 <DD>Outputs a string to the given stream.\r
347 <P>\r
348 <DD><DL>\r
349 <DT><B>Parameters:</B><DD><CODE>dos</CODE> - the stream<DD><CODE>s</CODE> - the string to output
350 <DT><B>Throws:</B>
351 <DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL>\r
352 </DD>\r
353 </DL>\r
354 <HR>\r
355 \r
356 <A NAME="getString(java.io.DataInputStream)"><!-- --></A><H3>\r
357 getString</H3>\r
358 <PRE>\r
359 public static java.lang.String <B>getString</B>(java.io.DataInputStream&nbsp;dis)
360                                   throws java.io.IOException</PRE>\r
361 <DL>\r
362 <DD>Inputs a string from a DataInputStream.\r
363 <P>\r
364 <DD><DL>\r
365 <DT><B>Parameters:</B><DD><CODE>dis</CODE> - the stream
366 <DT><B>Returns:</B><DD>the string
367 <DT><B>Throws:</B>
368 <DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL>\r
369 </DD>\r
370 </DL>\r
371 <HR>\r
372 \r
373 <A NAME="getString(java.nio.ByteBuffer)"><!-- --></A><H3>\r
374 getString</H3>\r
375 <PRE>\r
376 public static java.lang.String <B>getString</B>(java.nio.ByteBuffer&nbsp;bb)
377                                   throws java.io.IOException</PRE>\r
378 <DL>\r
379 <DD>Inputs a string from a ByteBuffer.\r
380 <P>\r
381 <DD><DL>\r
382 <DT><B>Parameters:</B><DD><CODE>bb</CODE> - the input byte buffer
383 <DT><B>Returns:</B><DD>the string
384 <DT><B>Throws:</B>
385 <DD><CODE>java.io.IOException</CODE> - if an I/O error occurs</DL>\r
386 </DD>\r
387 </DL>\r
388 <HR>\r
389 \r
390 <A NAME="getProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>\r
391 getProperty</H3>\r
392 <PRE>\r
393 public static java.lang.String <B>getProperty</B>(java.lang.String&nbsp;name,
394                                            java.lang.String&nbsp;defaultValue)</PRE>\r
395 <DL>\r
396 <DD>Gets a property by name and returns its value. If the property
397  cannot be found, the default is returned\r
398 <P>\r
399 <DD><DL>\r
400 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DD><CODE>defaultValue</CODE> - the default value to use if the property
401  cannot be found.
402 <DT><B>Returns:</B><DD>the string value for the property, or the defaultValue if 
403   the property cannot be found</DL>\r
404 </DD>\r
405 </DL>\r
406 <HR>\r
407 \r
408 <A NAME="getBoolean(java.lang.String)"><!-- --></A><H3>\r
409 getBoolean</H3>\r
410 <PRE>\r
411 public static boolean <B>getBoolean</B>(java.lang.String&nbsp;name)</PRE>\r
412 <DL>\r
413 <DD>Gets a boolean property by name.\r
414 <P>\r
415 <DD><DL>\r
416 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property
417 <DT><B>Returns:</B><DD>If there is no property with the specified name, or 
418   if the specified name is empty or null, then false is returned. 
419   otherwise the boolean value of the property is returned</DL>\r
420 </DD>\r
421 </DL>\r
422 <HR>\r
423 \r
424 <A NAME="getLong(java.lang.String, long)"><!-- --></A><H3>\r
425 getLong</H3>\r
426 <PRE>\r
427 public static java.lang.Long <B>getLong</B>(java.lang.String&nbsp;name,
428                                      long&nbsp;defaultValue)</PRE>\r
429 <DL>\r
430 <DD>Gets a long property by name.\r
431 <P>\r
432 <DD><DL>\r
433 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DD><CODE>defaultValue</CODE> - the default value to use if the property
434  cannot be found.
435 <DT><B>Returns:</B><DD>the long value for the property, or the defaultValue if 
436   the property cannot be found</DL>\r
437 </DD>\r
438 </DL>\r
439 <HR>\r
440 \r
441 <A NAME="getInteger(java.lang.String, int)"><!-- --></A><H3>\r
442 getInteger</H3>\r
443 <PRE>\r
444 public static java.lang.Integer <B>getInteger</B>(java.lang.String&nbsp;name,
445                                            int&nbsp;defaultValue)</PRE>\r
446 <DL>\r
447 <DD>Gets an Integer property by name.\r
448 <P>\r
449 <DD><DL>\r
450 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property<DD><CODE>defaultValue</CODE> - the default value to use if the property
451  cannot be found.
452 <DT><B>Returns:</B><DD>the Integer value for the property, or the defaultValue if 
453   the property cannot be found</DL>\r
454 </DD>\r
455 </DL>\r
456 <!-- ========= END OF CLASS DATA ========= -->\r
457 <HR>\r
458 \r
459
460 <!-- ======= START OF BOTTOM NAVBAR ====== -->\r
461 <A NAME="navbar_bottom"><!-- --></A>
462 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
463 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
464 <TR>\r
465 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
466 <A NAME="navbar_bottom_firstrow"><!-- --></A>
467 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
468   <TR ALIGN="center" VALIGN="top">\r
469   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
470   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
471   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
472   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
473   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
474   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
475   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
476   </TR>\r
477 </TABLE>\r
478 </TD>\r
479 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
480 </EM>\r
481 </TD>\r
482 </TR>\r
483 \r
484 <TR>\r
485 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
486 &nbsp;<A HREF="../../../../../com/sun/speech/freetts/util/Timer.html" title="class in com.sun.speech.freetts.util"><B>PREV CLASS</B></A>&nbsp;\r
487 &nbsp;<A HREF="../../../../../com/sun/speech/freetts/util/WaveUtils.html" title="class in com.sun.speech.freetts.util"><B>NEXT CLASS</B></A></FONT></TD>\r
488 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
489   <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
490 &nbsp;<A HREF="Utilities.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
491 &nbsp;<SCRIPT type="text/javascript">\r
492   <!--\r
493   if(window==top) {\r
494     document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
495   }\r
496   //-->\r
497 </SCRIPT>\r
498 <NOSCRIPT>\r
499   <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
500 </NOSCRIPT>
501 \r
502 </FONT></TD>\r
503 </TR>\r
504 <TR>\r
505 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
506   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
507 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
508 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
509 </TR>\r
510 </TABLE>\r
511 <A NAME="skip-navbar_bottom"></A>
512 <!-- ======== END OF BOTTOM NAVBAR ======= -->\r
513 \r
514 <HR>\r
515 \r
516 </BODY>\r
517 </HTML>\r