home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / 1&1 / java.z / java_301 / netscape / applet / ConsoleInputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-10-20  |  904 b   |  25 lines

  1. package netscape.applet;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5.  
  6. class ConsoleInputStream extends InputStream {
  7.    Console console;
  8.  
  9.    ConsoleInputStream(Console console) {
  10.       this.console = console;
  11.    }
  12.  
  13.    public int read() {
  14.       return -1;
  15.    }
  16.  
  17.    public int read(byte[] b) {
  18.       return -1;
  19.    }
  20.  
  21.    public int read(byte[] b, int off, int len) throws IOException {
  22.       return -1;
  23.    }
  24. }
  25.