1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_09) on Sun Jul 15 14:27:35 BST 2007 -->
7 Runtime (leJOS NXT API documentation)
10 <META NAME="keywords" CONTENT="java.lang.Runtime class">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 parent.document.title="Runtime (leJOS NXT API documentation)";
25 <BODY BGCOLOR="white" onload="windowTitle();">
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="">
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> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 <A HREF="../../java/lang/OutOfMemoryError.html" title="class in java.lang"><B>PREV CLASS</B></A>
55 <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>
58 <A HREF="Runtime.html" target="_top"><B>NO FRAMES</B></A>
59 <SCRIPT type="text/javascript">
62 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
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>
96 <DT><PRE>public class <B>Runtime</B><DT>extends <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
100 Minimalist version of the standard Java Runtime class.
105 <DT><B>Author:</B></DT>
106 <DD>Paul Andrews</DD>
112 <!-- ========== METHOD SUMMARY =========== -->
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>
120 <TR BGCOLOR="white" CLASS="TableRowColor">
121 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
122 <CODE> long</CODE></FONT></TD>
123 <TD><CODE><B><A HREF="../../java/lang/Runtime.html#freeMemory()">freeMemory</A></B>()</CODE>
126 Return the amount of free memory.on the heap</TD>
128 <TR BGCOLOR="white" CLASS="TableRowColor">
129 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130 <CODE>static <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>
134 Get the single instance of us.</TD>
136 <TR BGCOLOR="white" CLASS="TableRowColor">
137 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138 <CODE> long</CODE></FONT></TD>
139 <TD><CODE><B><A HREF="../../java/lang/Runtime.html#totalMemory()">totalMemory</A></B>()</CODE>
142 Return the size of the heap in bytes.</TD>
145 <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>
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>
157 <!-- ============ METHOD DETAIL ========== -->
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>
167 <A NAME="getRuntime()"><!-- --></A><H3>
170 public static <A HREF="../../java/lang/Runtime.html" title="class in java.lang">Runtime</A> <B>getRuntime</B>()</PRE>
172 <DD>Get the single instance of us.
180 <A NAME="freeMemory()"><!-- --></A><H3>
183 public long <B>freeMemory</B>()</PRE>
185 <DD>Return the amount of free memory.on the heap
189 <DT><B>Returns:</B><DD>the free memory in bytes</DL>
194 <A NAME="totalMemory()"><!-- --></A><H3>
197 public long <B>totalMemory</B>()</PRE>
199 <DD>Return the size of the heap in bytes.
203 <DT><B>Returns:</B><DD>the free memory in bytes</DL>
206 <!-- ========= END OF CLASS DATA ========= -->
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="">
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> </TD>
220 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
221 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
222 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
223 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
224 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
225 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
229 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
235 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
236 <A HREF="../../java/lang/OutOfMemoryError.html" title="class in java.lang"><B>PREV CLASS</B></A>
237 <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>
240 <A HREF="Runtime.html" target="_top"><B>NO FRAMES</B></A>
241 <SCRIPT type="text/javascript">
244 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
249 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
256 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
257 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
258 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
259 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
262 <A NAME="skip-navbar_bottom"></A>
263 <!-- ======== END OF BOTTOM NAVBAR ======= -->