home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.sslight;
-
- import java.io.IOException;
- import java.io.InputStream;
-
- public class SSLInputStream extends InputStream {
- private byte[] one_byte;
- // $FF: renamed from: rl com.ibm.sslight.SSLRecordLayer
- private SSLRecordLayer field_0;
-
- SSLInputStream(SSLRecordLayer var1) {
- this.field_0 = var1;
- this.one_byte = new byte[1];
- }
-
- public void close() throws IOException {
- if (this.field_0 == null) {
- throw new IOException();
- } else {
- this.field_0.conn.close();
- this.field_0 = null;
- }
- }
-
- public int read(byte[] var1) throws IOException {
- return this.read(var1, 0, var1.length);
- }
-
- public synchronized int read() throws IOException {
- return this.read(this.one_byte, 0, 1) == -1 ? -1 : this.one_byte[0] & 255;
- }
-
- public synchronized int read(byte[] var1, int var2, int var3) throws IOException {
- if (this.field_0 != null && var1 != null && var3 > 0) {
- return this.field_0.read(var1, var2, var3);
- } else {
- throw new IOException();
- }
- }
-
- public int available() throws IOException {
- if (this.field_0 == null) {
- throw new IOException();
- } else {
- return this.field_0.available();
- }
- }
- }
-