source: trunk/src/gcc/libjava/java/lang/PosixProcess.java@ 2228

Last change on this file since 2228 was 1392, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.1 KB
Line 
1// PosixProcess.java - Subclass of Process for POSIX systems.
2
3/* Copyright (C) 1998, 1999 Free Software Foundation
4
5 This file is part of libgcj.
6
7This software is copyrighted work licensed under the terms of the
8Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9details. */
10
11package java.lang;
12
13import java.io.File;
14import java.io.InputStream;
15import java.io.OutputStream;
16import java.io.IOException;
17
18/**
19 * @author Tom Tromey <[email protected]>
20 * @date May 3, 1999
21 */
22
23// This is entirely internal to our implementation.
24
25// This file is copied to `ConcreteProcess.java' before compilation.
26// Hence the class name apparently does not match the file name.
27final class ConcreteProcess extends Process
28{
29 public native void destroy ();
30
31 public int exitValue ()
32 {
33 if (! hasExited)
34 throw new IllegalThreadStateException("Process has not exited");
35 return status;
36 }
37
38 public InputStream getErrorStream ()
39 {
40 return errorStream;