OSDN Git Service

ac963f440eafcaabe5cd1ba20bcb192e969345ad
[pf3gnuchains/gcc-fork.git] / libjava / java / lang / EcosProcess.java
1 // EcosProcess.java - Subclass of Process for eCos systems.
2
3 /* Copyright (C) 1998, 1999  Red Hat, Inc.
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10
11 package java.lang;
12
13 import java.io.InputStream;
14 import java.io.OutputStream;
15 import java.io.IOException;
16
17 /**
18  * @author Tom Tromey <tromey@cygnus.com>
19  * @date May 11, 1999
20  */
21
22 // This is entirely internal to our implementation.
23
24 // This file is copied to `ConcreteProcess.java' before compilation.
25 // Hence the class name apparently does not match the file name.
26 final class ConcreteProcess extends Process
27 {
28   // See natEcosProcess.cc to understand why this is native.
29   public native void destroy ();
30
31   public int exitValue ()
32   {
33     return 0;
34   }
35   public InputStream getErrorStream ()
36   {
37     return null;
38   }
39
40   public InputStream getInputStream ()
41   {
42     return null;
43   }
44
45   public OutputStream getOutputStream ()
46   {
47     return null;
48   }
49
50   public int waitFor () throws InterruptedException
51   {
52     return 0;
53   }
54
55   public ConcreteProcess (String[] progarray, String[] envp) throws IOException
56   {
57     throw new IOException ("eCos processes unimplemented");
58   }
59 }