home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VPage / Java.bin / CLASSES.ZIP / sun / tools / debug / AgentOutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  730 b   |  28 lines

  1. package sun.tools.debug;
  2.  
  3. import java.io.FilterOutputStream;
  4. import java.io.IOException;
  5. import java.io.OutputStream;
  6.  
  7. class AgentOutputStream extends FilterOutputStream implements AgentConstants {
  8.    AgentOutputStream(OutputStream var1) {
  9.       super(var1);
  10.    }
  11.  
  12.    public synchronized void write(int var1) throws IOException {
  13.       super.out.write(33);
  14.       super.out.write(1);
  15.       super.out.write(var1);
  16.    }
  17.  
  18.    public void write(byte[] var1) throws IOException {
  19.       this.write(var1, 0, var1.length);
  20.    }
  21.  
  22.    public synchronized void write(byte[] var1, int var2, int var3) throws IOException {
  23.       super.out.write(33);
  24.       super.out.write(var3);
  25.       super.out.write(var1, var2, var3);
  26.    }
  27. }
  28.