<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.Process
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Object.html#_top_">Previous</a>  <a href="java.lang.Runtime.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.Process
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.lang.Process
</pre>
<hr>
<dl>
  <dt> public abstract class <b>Process</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The <code>exec</code> methods return an 
 instance of a subclass of <code>Process</code> that can be used to 
 control the process and obtain information about it. 
 <p>
 The subprocess is not killed when there are no more references to 
 the <code>Process</code> object, but rather the subprocess 
 continues executing asynchronously.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Runtime.html#exec(java.lang.String)">exec</a>, <a href="java.lang.Runtime.html#exec(java.lang.String, java.lang.String[])">exec</a>, <a href="java.lang.Runtime.html#exec(java.lang.String[])">exec</a>, <a href="java.lang.Runtime.html#exec(java.lang.String[], java.lang.String[])">exec</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Process()"><b>Process</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#destroy()"><b>destroy</b></a>()
  <dd>  Kills the subprocess.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#exitValue()"><b>exitValue</b></a>()
  <dd>  Returns the exit value for the subprocess.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getErrorStream()"><b>getErrorStream</b></a>()
  <dd>  Gets the error stream of the subprocess.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInputStream()"><b>getInputStream</b></a>()
  <dd> 
 Gets the input stream of the subprocess.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getOutputStream()"><b>getOutputStream</b></a>()
  <dd>  Gets the output stream of the subprocess.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#waitFor()"><b>waitFor</b></a>()
  <dd>  Waits for the subprocess to complete.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Process"></a>
<a name="Process()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Process</b>
<pre>
 public Process()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getOutputStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getOutputStream"><b>getOutputStream</b></a>
<pre>
 public abstract <a href="java.io.OutputStream.html#_top_">OutputStream</a> getOutputStream()
</pre>
<dl>
  <dd> Gets the output stream of the subprocess.
 This stream is usually buffered.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the output stream connected to the normal input of the
          subprocess.
  </dl></dd>
</dl>
<a name="getInputStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInputStream"><b>getInputStream</b></a>
<pre>
 public abstract <a href="java.io.InputStream.html#_top_">InputStream</a> getInputStream()
</pre>
<dl>
  <dd> Gets the input stream of the subprocess.
 This stream is usually buffered.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the input stream connected to the normal output of the
          subprocess.
  </dl></dd>
</dl>
<a name="getErrorStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getErrorStream"><b>getErrorStream</b></a>
<pre>
 public abstract <a href="java.io.InputStream.html#_top_">InputStream</a> getErrorStream()
</pre>
<dl>
  <dd> Gets the error stream of the subprocess.
 This stream is usually unbuffered.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the input stream connected to the error stream of the
          subprocess.
  </dl></dd>
</dl>
<a name="waitFor()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="waitFor"><b>waitFor</b></a>
<pre>
 public abstract int waitFor() throws <a href="java.lang.InterruptedException.html#_top_">InterruptedException</a>
</pre>
<dl>
  <dd> Waits for the subprocess to complete. This method returns 
 immediately if the subprocess has already terminated. If the
 subprocess has not yet terminated, the calling thread will be
 blocked until the subprocess exits.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the exit value of the process.
    <dt> <b>Throws:</b> <a href="java.lang.InterruptedException.html#_top_">InterruptedException</a>
    <dd> if the <code>waitFor</code> was
               interrupted.
  </dl></dd>
</dl>
<a name="exitValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="exitValue"><b>exitValue</b></a>
<pre>
 public abstract int exitValue()
</pre>
<dl>
  <dd> Returns the exit value for the subprocess.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the exit value of the subprocess.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalThreadStateException.html#_top_">IllegalThreadStateException</a>
    <dd> if the subprocess has not yet
               terminated.
  </dl></dd>
</dl>
<a name="destroy()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="destroy"><b>destroy</b></a>
<pre>
 public abstract void destroy()
</pre>
<dl>
  <dd> Kills the subprocess.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Object.html#_top_">Previous</a>  <a href="java.lang.Runtime.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
