OSDN Git Service

lejos_NXJ_win32_0_3_0alpha.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / docs / apidocs / java / lang / Runtime.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.5.0_09) on Sun Jul 15 14:27:35 BST 2007 -->
6 <TITLE>
7 Runtime (leJOS NXT API documentation)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="java.lang.Runtime class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17     parent.document.title="Runtime (leJOS NXT API documentation)";
18 }
19 </SCRIPT>
20 <NOSCRIPT>
21 </NOSCRIPT>
22
23 </HEAD>
24
25 <BODY BGCOLOR="white" onload="windowTitle();">
26
27
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32 <TR>
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36   <TR ALIGN="center" VALIGN="top">
37   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44   </TR>
45 </TABLE>
46 </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48 </EM>
49 </TD>
50 </TR>
51
52 <TR>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 &nbsp;<A HREF="../../java/lang/OutOfMemoryError.html" title="class in java.lang"><B>PREV CLASS</B></A>&nbsp;
55 &nbsp;<A HREF="../../java/lang/RuntimeException.html" title="class in java.lang"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57   <A HREF="../../index.html?java/lang/Runtime.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58 &nbsp;<A HREF="Runtime.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
59 &nbsp;<SCRIPT type="text/javascript">
60   <!--
61   if(window==top) {
62     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
63   }
64   //-->
65 </SCRIPT>
66 <NOSCRIPT>
67   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
68 </NOSCRIPT>
69
70
71 </FONT></TD>
72 </TR>
73 <TR>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78 </TR>
79 </TABLE>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
82
83 <HR>
84 <!-- ======== START OF CLASS DATA ======== -->
85 <H2>
86 <FONT SIZE="-1">
87 java.lang</FONT>
88 <BR>
89 Class Runtime</H2>
90 <PRE>
91 <A HREF="../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
92   <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>java.lang.Runtime</B>
93 </PRE>
94 <HR>
95 <DL>
96 <DT><PRE>public class <B>Runtime</B><DT>extends <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
97 </PRE>
98
99 <P>
100 Minimalist version of the standard Java Runtime class.
101 <P>
102
103 <P>
104 <DL>
105 <DT><B>Author:</B></DT>
106   <DD>Paul Andrews</DD>
107 </DL>
108 <HR>
109
110 <P>
111
112 <!-- ========== METHOD SUMMARY =========== -->
113
114 <A NAME="method_summary"><!-- --></A>
115 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
118 <B>Method Summary</B></FONT></TH>
119 </TR>
120 <TR BGCOLOR="white" CLASS="TableRowColor">
121 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
122 <CODE>&nbsp;long</CODE></FONT></TD>
123 <TD><CODE><B><A HREF="../../java/lang/Runtime.html#freeMemory()">freeMemory</A></B>()</CODE>
124
125 <BR>
126 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the amount of free memory.on the heap</TD>
127 </TR>
128 <TR BGCOLOR="white" CLASS="TableRowColor">
129 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130 <CODE>static&nbsp;<A HREF="../../java/lang/Runtime.html" title="class in java.lang">Runtime</A></CODE></FONT></TD>
131 <TD><CODE><B><A HREF="../../java/lang/Runtime.html#getRuntime()">getRuntime</A></B>()</CODE>
132
133 <BR>
134 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the single instance of us.</TD>
135 </TR>
136 <TR BGCOLOR="white" CLASS="TableRowColor">
137 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138 <CODE>&nbsp;long</CODE></FONT></TD>
139 <TD><CODE><B><A HREF="../../java/lang/Runtime.html#totalMemory()">totalMemory</A></B>()</CODE>
140
141 <BR>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the heap in bytes.</TD>
143 </TR>
144 </TABLE>
145 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
146 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
147 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
148 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH>
149 </TR>
150 <TR BGCOLOR="white" CLASS="TableRowColor">
151 <TD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A></CODE></TD>
152 </TR>
153 </TABLE>
154 &nbsp;
155 <P>
156
157 <!-- ============ METHOD DETAIL ========== -->
158
159 <A NAME="method_detail"><!-- --></A>
160 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
161 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
162 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
163 <B>Method Detail</B></FONT></TH>
164 </TR>
165 </TABLE>
166
167 <A NAME="getRuntime()"><!-- --></A><H3>
168 getRuntime</H3>
169 <PRE>
170 public static <A HREF="../../java/lang/Runtime.html" title="class in java.lang">Runtime</A> <B>getRuntime</B>()</PRE>
171 <DL>
172 <DD>Get the single instance of us.
173 <P>
174 <DD><DL>
175 </DL>
176 </DD>
177 </DL>
178 <HR>
179
180 <A NAME="freeMemory()"><!-- --></A><H3>
181 freeMemory</H3>
182 <PRE>
183 public long <B>freeMemory</B>()</PRE>
184 <DL>
185 <DD>Return the amount of free memory.on the heap
186 <P>
187 <DD><DL>
188
189 <DT><B>Returns:</B><DD>the free memory in bytes</DL>
190 </DD>
191 </DL>
192 <HR>
193
194 <A NAME="totalMemory()"><!-- --></A><H3>
195 totalMemory</H3>
196 <PRE>
197 public long <B>totalMemory</B>()</PRE>
198 <DL>
199 <DD>Return the size of the heap in bytes.
200 <P>
201 <DD><DL>
202
203 <DT><B>Returns:</B><DD>the free memory in bytes</DL>
204 </DD>
205 </DL>
206 <!-- ========= END OF CLASS DATA ========= -->
207 <HR>
208
209
210 <!-- ======= START OF BOTTOM NAVBAR ====== -->
211 <A NAME="navbar_bottom"><!-- --></A>
212 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
213 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
214 <TR>
215 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
216 <A NAME="navbar_bottom_firstrow"><!-- --></A>
217 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
218   <TR ALIGN="center" VALIGN="top">
219   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
220   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
221   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
222   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
223   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
224   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
225   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
226   </TR>
227 </TABLE>
228 </TD>
229 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
230 </EM>
231 </TD>
232 </TR>
233
234 <TR>
235 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
236 &nbsp;<A HREF="../../java/lang/OutOfMemoryError.html" title="class in java.lang"><B>PREV CLASS</B></A>&nbsp;
237 &nbsp;<A HREF="../../java/lang/RuntimeException.html" title="class in java.lang"><B>NEXT CLASS</B></A></FONT></TD>
238 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
239   <A HREF="../../index.html?java/lang/Runtime.html" target="_top"><B>FRAMES</B></A>  &nbsp;
240 &nbsp;<A HREF="Runtime.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
241 &nbsp;<SCRIPT type="text/javascript">
242   <!--
243   if(window==top) {
244     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
245   }
246   //-->
247 </SCRIPT>
248 <NOSCRIPT>
249   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
250 </NOSCRIPT>
251
252
253 </FONT></TD>
254 </TR>
255 <TR>
256 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
257   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
258 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
259 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
260 </TR>
261 </TABLE>
262 <A NAME="skip-navbar_bottom"></A>
263 <!-- ======== END OF BOTTOM NAVBAR ======= -->
264
265 <HR>
266
267 </BODY>
268 </HTML>