home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.sslight;
-
- import java.io.IOException;
- import java.io.OutputStream;
-
- public class SSLOutputStream extends OutputStream {
- private byte[] one_byte = new byte[1];
- // $FF: renamed from: rl com.ibm.sslight.SSLRecordLayer
- private SSLRecordLayer field_0;
-
- SSLOutputStream(SSLRecordLayer var1) {
- this.field_0 = var1;
- }
-
- public void close() throws IOException {
- if (this.field_0 == null) {
- throw new IOException();
- } else {
- this.field_0.conn.close();
- this.field_0 = null;
- }
- }
-
- public synchronized void flush() throws IOException {
- if (this.field_0 == null) {
- throw new IOException();
- } else {
- this.field_0.write((byte)23, (byte[])null, 0, 0, true);
- }
- }
-
- public synchronized void write(int var1) throws IOException {
- this.one_byte[0] = (byte)var1;
- this.write(this.one_byte, 0, 1);
- }
-
- public void write(byte[] var1) throws IOException {
- this.write(var1, 0, var1.length);
- }
-
- public synchronized void write(byte[] var1, int var2, int var3) throws IOException {
- if (this.field_0 == null) {
- throw new IOException();
- } else {
- this.field_0.write((byte)23, var1, var2, var3, true);
- }
- }
- }
-