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

  1. package java.io;
  2.  
  3. public abstract class OutputStream {
  4.    public abstract void write(int var1) throws IOException;
  5.  
  6.    public void write(byte[] b) throws IOException {
  7.       this.write(b, 0, b.length);
  8.    }
  9.  
  10.    public void write(byte[] b, int off, int len) throws IOException {
  11.       for(int i = 0; i < len; ++i) {
  12.          this.write(b[off + i]);
  13.       }
  14.  
  15.    }
  16.  
  17.    public void flush() throws IOException {
  18.    }
  19.  
  20.    public void close() throws IOException {
  21.    }
  22. }
  23.