source: fedd/abac-src/rtml/doc/edu/stanford/rt/util/RTUtil.html @ 4b362df

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since 4b362df was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 13.9 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc on Wed Oct 02 14:27:59 PDT 2002 -->
6<TITLE>
7RTUtil
8</TITLE>
9<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
10</HEAD>
11<SCRIPT>
12function asd()
13{
14parent.document.title="RTUtil";
15}
16</SCRIPT>
17<BODY BGCOLOR="white" onload="asd();">
18
19<!-- ========== START OF NAVBAR ========== -->
20<A NAME="navbar_top"><!-- --></A>
21<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
22<TR>
23<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
24<A NAME="navbar_top_firstrow"><!-- --></A>
25<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
26  <TR ALIGN="center" VALIGN="top">
27  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
28  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
29  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
30  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RTUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
31  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
34  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
35  </TR>
36</TABLE>
37</TD>
38<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
39</EM>
40</TD>
41</TR>
42
43<TR>
44<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
45&nbsp;PREV CLASS&nbsp;
46&nbsp;NEXT CLASS</FONT></TD>
47<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
48  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
49&nbsp;<A HREF="RTUtil.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
50&nbsp;
51<SCRIPT>
52  <!--
53  if(window==top) {
54    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
55  }
56  //-->
57</SCRIPT>
58<NOSCRIPT>
59<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
60</NOSCRIPT>
61</FONT></TD>
62</TR>
63<TR>
64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
65  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>
66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
67DETAIL:&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>
68</TR>
69</TABLE>
70<!-- =========== END OF NAVBAR =========== -->
71
72<HR>
73<!-- ======== START OF CLASS DATA ======== -->
74<H2>
75<FONT SIZE="-1">
76edu.stanford.rt.util</FONT>
77<BR>
78Class  RTUtil</H2>
79<PRE>
80java.lang.Object
81  |
82  +--<B>edu.stanford.rt.util.RTUtil</B>
83</PRE>
84<HR>
85<DL>
86<DT>public class <B>RTUtil</B><DT>extends java.lang.Object</DL>
87
88<P>
89<DL>
90<DT><B>Author:</B><DD>Ninghui Li, Sandra Qiu<br>
91 
92 Utility class</DD>
93</DD>
94</DL>
95<HR>
96
97<P>
98<!-- ======== NESTED CLASS SUMMARY ======== -->
99
100
101<!-- =========== FIELD SUMMARY =========== -->
102
103<A NAME="field_summary"><!-- --></A>
104<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
105<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
106<TD COLSPAN=2><FONT SIZE="+2">
107<B>Field Summary</B></FONT></TD>
108</TR>
109<TR BGCOLOR="white" CLASS="TableRowColor">
110<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
111<CODE>private static&nbsp;boolean</CODE></FONT></TD>
112<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#DEBUG">DEBUG</A></B></CODE>
113
114<BR>
115&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
116</TR>
117<TR BGCOLOR="white" CLASS="TableRowColor">
118<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119<CODE>private static&nbsp;java.io.PrintStream</CODE></FONT></TD>
120<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#out">out</A></B></CODE>
121
122<BR>
123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
124</TR>
125</TABLE>
126&nbsp;
127<!-- ======== CONSTRUCTOR SUMMARY ======== -->
128
129<A NAME="constructor_summary"><!-- --></A>
130<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
131<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132<TD COLSPAN=2><FONT SIZE="+2">
133<B>Constructor Summary</B></FONT></TD>
134</TR>
135<TR BGCOLOR="white" CLASS="TableRowColor">
136<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#RTUtil()">RTUtil</A></B>()</CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
140</TR>
141</TABLE>
142&nbsp;
143<!-- ========== METHOD SUMMARY =========== -->
144
145<A NAME="method_summary"><!-- --></A>
146<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
147<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
148<TD COLSPAN=2><FONT SIZE="+2">
149<B>Method Summary</B></FONT></TD>
150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153<CODE>static&nbsp;void</CODE></FONT></TD>
154<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#debugInfo(java.lang.String)">debugInfo</A></B>(java.lang.String&nbsp;s)</CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method debugInfo.</TD>
158</TR>
159<TR BGCOLOR="white" CLASS="TableRowColor">
160<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161<CODE>static&nbsp;boolean</CODE></FONT></TD>
162<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#parseBoolean(java.lang.String, boolean)">parseBoolean</A></B>(java.lang.String&nbsp;attrValue,
163             boolean&nbsp;defValue)</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method parseBoolean.</TD>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE>static&nbsp;int</CODE></FONT></TD>
171<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#parseInt(java.lang.String, int)">parseInt</A></B>(java.lang.String&nbsp;attrValue,
172         int&nbsp;defValue)</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method parseInt.</TD>
176</TR>
177<TR BGCOLOR="white" CLASS="TableRowColor">
178<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179<CODE>static&nbsp;long</CODE></FONT></TD>
180<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#parseLong(java.lang.String, long)">parseLong</A></B>(java.lang.String&nbsp;attrValue,
181          long&nbsp;defValue)</CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method parseLong.</TD>
185</TR>
186<TR BGCOLOR="white" CLASS="TableRowColor">
187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188<CODE>static&nbsp;void</CODE></FONT></TD>
189<TD><CODE><B><A HREF="../../../../edu/stanford/rt/util/RTUtil.html#setOutputStream(java.io.PrintStream)">setOutputStream</A></B>(java.io.PrintStream&nbsp;out)</CODE>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
193</TR>
194</TABLE>
195&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
196<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
197<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
198<TD><B>Methods inherited from class java.lang.Object</B></TD>
199</TR>
200<TR BGCOLOR="white" CLASS="TableRowColor">
201<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
202</TR>
203</TABLE>
204&nbsp;
205<P>
206
207<!-- ============ FIELD DETAIL =========== -->
208
209<A NAME="field_detail"><!-- --></A>
210<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
211<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
212<TD COLSPAN=1><FONT SIZE="+2">
213<B>Field Detail</B></FONT></TD>
214</TR>
215</TABLE>
216
217<A NAME="out"><!-- --></A><H3>
218out</H3>
219<PRE>
220private static java.io.PrintStream <B>out</B></PRE>
221<DL>
222<DL>
223</DL>
224</DL>
225<HR>
226
227<A NAME="DEBUG"><!-- --></A><H3>
228DEBUG</H3>
229<PRE>
230private static boolean <B>DEBUG</B></PRE>
231<DL>
232<DL>
233</DL>
234</DL>
235
236<!-- ========= CONSTRUCTOR DETAIL ======== -->
237
238<A NAME="constructor_detail"><!-- --></A>
239<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
240<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
241<TD COLSPAN=1><FONT SIZE="+2">
242<B>Constructor Detail</B></FONT></TD>
243</TR>
244</TABLE>
245
246<A NAME="RTUtil()"><!-- --></A><H3>
247RTUtil</H3>
248<PRE>
249public <B>RTUtil</B>()</PRE>
250<DL>
251</DL>
252
253<!-- ============ METHOD DETAIL ========== -->
254
255<A NAME="method_detail"><!-- --></A>
256<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
257<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
258<TD COLSPAN=1><FONT SIZE="+2">
259<B>Method Detail</B></FONT></TD>
260</TR>
261</TABLE>
262
263<A NAME="setOutputStream(java.io.PrintStream)"><!-- --></A><H3>
264setOutputStream</H3>
265<PRE>
266public static void <B>setOutputStream</B>(java.io.PrintStream&nbsp;out)</PRE>
267<DL>
268<DD><DL>
269</DL>
270</DD>
271</DL>
272<HR>
273
274<A NAME="debugInfo(java.lang.String)"><!-- --></A><H3>
275debugInfo</H3>
276<PRE>
277public static void <B>debugInfo</B>(java.lang.String&nbsp;s)</PRE>
278<DL>
279<DD>Method debugInfo.
280<P>
281<DD><DL>
282<DT><B>Parameters:</B><DD><CODE>s</CODE> - </DL>
283</DD>
284</DL>
285<HR>
286
287<A NAME="parseLong(java.lang.String, long)"><!-- --></A><H3>
288parseLong</H3>
289<PRE>
290public static long <B>parseLong</B>(java.lang.String&nbsp;attrValue,
291                             long&nbsp;defValue)</PRE>
292<DL>
293<DD>Method parseLong.
294  parses the given attribute value as a long. If attrValue cannot
295  be correctly parsed, then returns the given default value.
296<P>
297<DD><DL>
298<DT><B>Parameters:</B><DD><CODE>attrValue</CODE> - the string to be parsed.<DD><CODE>defValue</CODE> - the default value
299<DT><B>Returns:</B><DD>long</DL>
300</DD>
301</DL>
302<HR>
303
304<A NAME="parseInt(java.lang.String, int)"><!-- --></A><H3>
305parseInt</H3>
306<PRE>
307public static int <B>parseInt</B>(java.lang.String&nbsp;attrValue,
308                           int&nbsp;defValue)</PRE>
309<DL>
310<DD>Method parseInt.
311  parses the given attribute value as an integer. If the attrValue
312  cannot be correctly parsed, returns the given default value.
313<P>
314<DD><DL>
315<DT><B>Parameters:</B><DD><CODE>attrValue</CODE> - the string to be parsed.<DD><CODE>defValue</CODE> - the default value.
316<DT><B>Returns:</B><DD>int</DL>
317</DD>
318</DL>
319<HR>
320
321<A NAME="parseBoolean(java.lang.String, boolean)"><!-- --></A><H3>
322parseBoolean</H3>
323<PRE>
324public static boolean <B>parseBoolean</B>(java.lang.String&nbsp;attrValue,
325                                   boolean&nbsp;defValue)</PRE>
326<DL>
327<DD>Method parseBoolean.
328  parses the given attribute value as a boolean.
329 If attrValue is null or an empty string, return the
330 given default value.
331<P>
332<DD><DL>
333<DT><B>Parameters:</B><DD><CODE>attrValue</CODE> - the string to be parsed.<DD><CODE>defValue</CODE> - the default value
334<DT><B>Returns:</B><DD>boolean</DL>
335</DD>
336</DL>
337<!-- ========= END OF CLASS DATA ========= -->
338<HR>
339
340<!-- ========== START OF NAVBAR ========== -->
341<A NAME="navbar_bottom"><!-- --></A>
342<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
343<TR>
344<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
345<A NAME="navbar_bottom_firstrow"><!-- --></A>
346<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
347  <TR ALIGN="center" VALIGN="top">
348  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
349  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
350  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
351  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RTUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
352  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
353  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
354  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
355  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
356  </TR>
357</TABLE>
358</TD>
359<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
360</EM>
361</TD>
362</TR>
363
364<TR>
365<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
366&nbsp;PREV CLASS&nbsp;
367&nbsp;NEXT CLASS</FONT></TD>
368<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
369  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
370&nbsp;<A HREF="RTUtil.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
371&nbsp;
372<SCRIPT>
373  <!--
374  if(window==top) {
375    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
376  }
377  //-->
378</SCRIPT>
379<NOSCRIPT>
380<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
381</NOSCRIPT>
382</FONT></TD>
383</TR>
384<TR>
385<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
386  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>
387<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
388DETAIL:&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>
389</TR>
390</TABLE>
391<!-- =========== END OF NAVBAR =========== -->
392
393<HR>
394
395</BODY>
396</HTML>
Note: See TracBrowser for help on using the repository browser.