home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / DominoDesignerDominoDesignerDataHtml / NCSO.cab / com / ibm / sslight / SSLOutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-16  |  922 b   |  49 lines

  1. package com.ibm.sslight;
  2.  
  3. import java.io.IOException;
  4. import java.io.OutputStream;
  5.  
  6. public class SSLOutputStream extends OutputStream {
  7.    private byte[] one_byte = new byte[1];
  8.    // $FF: renamed from: rl com.ibm.sslight.SSLRecordLayer
  9.    private SSLRecordLayer field_0;
  10.  
  11.    SSLOutputStream(SSLRecordLayer var1) {
  12.       this.field_0 = var1;
  13.    }
  14.  
  15.    public void close() throws IOException {
  16.       if (this.field_0 == null) {
  17.          throw new IOException();
  18.       } else {
  19.          this.field_0.conn.close();
  20.          this.field_0 = null;
  21.       }
  22.    }
  23.  
  24.    public synchronized void flush() throws IOException {
  25.       if (this.field_0 == null) {
  26.          throw new IOException();
  27.       } else {
  28.          this.field_0.write((byte)23, (byte[])null, 0, 0, true);
  29.       }
  30.    }
  31.  
  32.    public synchronized void write(int var1) throws IOException {
  33.       this.one_byte[0] = (byte)var1;
  34.       this.write(this.one_byte, 0, 1);
  35.    }
  36.  
  37.    public void write(byte[] var1) throws IOException {
  38.       this.write(var1, 0, var1.length);
  39.    }
  40.  
  41.    public synchronized void write(byte[] var1, int var2, int var3) throws IOException {
  42.       if (this.field_0 == null) {
  43.          throw new IOException();
  44.       } else {
  45.          this.field_0.write((byte)23, var1, var2, var3, true);
  46.       }
  47.    }
  48. }
  49.