home *** CD-ROM | disk | FTP | other *** search
/ PC User 1998 October / Image.iso / BROWSER / CLASSES.ZIP / JAVA / IO / FilterOutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-04-14  |  698 b   |  38 lines

  1. package java.io;
  2.  
  3. public class FilterOutputStream extends OutputStream {
  4.    protected OutputStream out;
  5.  
  6.    public FilterOutputStream(OutputStream var1) {
  7.       this.out = var1;
  8.    }
  9.  
  10.    public void write(int var1) throws IOException {
  11.       this.out.write(var1);
  12.    }
  13.  
  14.    public void write(byte[] var1) throws IOException {
  15.       this.write(var1, 0, var1.length);
  16.    }
  17.  
  18.    public void write(byte[] var1, int var2, int var3) throws IOException {
  19.       for(int var4 = 0; var4 < var3; ++var4) {
  20.          this.out.write(var1[var2 + var4]);
  21.       }
  22.  
  23.    }
  24.  
  25.    public void flush() throws IOException {
  26.       this.out.flush();
  27.    }
  28.  
  29.    public void close() throws IOException {
  30.       try {
  31.          this.flush();
  32.       } catch (IOException var1) {
  33.       }
  34.  
  35.       this.out.close();
  36.    }
  37. }
  38.