home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / io / OutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  591 b   |  31 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[] var1) throws IOException {
  7.       this.write(var1, 0, var1.length);
  8.    }
  9.  
  10.    public void write(byte[] var1, int var2, int var3) throws IOException {
  11.       if (var1 == null) {
  12.          throw new NullPointerException();
  13.       } else if (var2 >= 0 && var2 <= var1.length && var3 >= 0 && var2 + var3 <= var1.length && var2 + var3 >= 0) {
  14.          if (var3 != 0) {
  15.             for(int var4 = 0; var4 < var3; ++var4) {
  16.                this.write(var1[var2 + var4]);
  17.             }
  18.  
  19.          }
  20.       } else {
  21.          throw new IndexOutOfBoundsException();
  22.       }
  23.    }
  24.  
  25.    public void flush() throws IOException {
  26.    }
  27.  
  28.    public void close() throws IOException {
  29.    }
  30. }
  31.