EcosProcess.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // EcosProcess.java - Subclass of Process for eCos systems.
  2. /* Copyright (C) 1998, 1999, 2006, 2007 Free Software Foundation
  3. This file is part of libgcj.
  4. This software is copyrighted work licensed under the terms of the
  5. Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
  6. details. */
  7. package java.lang;
  8. import java.io.File;
  9. import java.io.InputStream;
  10. import java.io.OutputStream;
  11. import java.io.IOException;
  12. /**
  13. * @author Tom Tromey <tromey@cygnus.com>
  14. * @date May 11, 1999
  15. */
  16. // This is entirely internal to our implementation.
  17. final class EcosProcess extends Process
  18. {
  19. // See natEcosProcess.cc to understand why this is native.
  20. public native void destroy ();
  21. public int exitValue ()
  22. {
  23. return 0;
  24. }
  25. public InputStream getErrorStream ()
  26. {
  27. return null;
  28. }
  29. public InputStream getInputStream ()
  30. {
  31. return null;
  32. }
  33. public OutputStream getOutputStream ()
  34. {
  35. return null;
  36. }
  37. public int waitFor () throws InterruptedException
  38. {
  39. return 0;
  40. }
  41. public EcosProcess (String[] progarray, String[] envp, File dir,
  42. boolean redirect)
  43. throws IOException
  44. {
  45. throw new IOException ("eCos processes unimplemented");
  46. }
  47. }