public class com.sun.jndi.ldap.sasl.SaslInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.sun.jndi.ldap.sasl.SaslInputStream
  super_class: java.io.InputStream
{
  private static final boolean debug;
    descriptor: Z
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 0

  private byte[] saslBuffer;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private byte[] lenBuf;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private byte[] buf;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private int bufPos;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private java.io.InputStream in;
    descriptor: Ljava/io/InputStream;
    flags: (0x0002) ACC_PRIVATE

  private javax.security.sasl.SaslClient sc;
    descriptor: Ljavax/security/sasl/SaslClient;
    flags: (0x0002) ACC_PRIVATE

  private int recvMaxBufSize;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  void <init>(javax.security.sasl.SaslClient, java.io.InputStream);
    descriptor: (Ljavax/security/sasl/SaslClient;Ljava/io/InputStream;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
        start local 1 // javax.security.sasl.SaslClient sc
        start local 2 // java.io.InputStream in
         0: .line 61
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 51
            aload 0 /* this */
            iconst_4
            newarray 8
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.lenBuf:[B
         2: .line 53
            aload 0 /* this */
            iconst_0
            newarray 8
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
         3: .line 55
            aload 0 /* this */
            iconst_0
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
         4: .line 58
            aload 0 /* this */
            ldc 65536
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
         5: .line 62
            aload 0 /* this */
            aload 2 /* in */
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.in:Ljava/io/InputStream;
         6: .line 63
            aload 0 /* this */
            aload 1 /* sc */
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.sc:Ljavax/security/sasl/SaslClient;
         7: .line 65
            aload 1 /* sc */
            ldc "javax.security.sasl.maxbuffer"
            invokeinterface javax.security.sasl.SaslClient.getNegotiatedProperty:(Ljava/lang/String;)Ljava/lang/Object;
            checkcast java.lang.String
            astore 3 /* str */
        start local 3 // java.lang.String str
         8: .line 66
            aload 3 /* str */
            ifnull 15
         9: .line 68
            aload 0 /* this */
            aload 3 /* str */
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
        10: .line 69
            goto 15
      StackMap locals: com.sun.jndi.ldap.sasl.SaslInputStream javax.security.sasl.SaslClient java.io.InputStream java.lang.String
      StackMap stack: java.lang.NumberFormatException
        11: pop
        12: .line 70
            new javax.security.sasl.SaslException
            dup
            new java.lang.StringBuilder
            dup
            ldc "javax.security.sasl.maxbuffer property must be numeric string: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
        13: .line 71
            aload 3 /* str */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        14: .line 70
            invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;)V
            athrow
        15: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
            newarray 8
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.saslBuffer:[B
        16: .line 75
            return
        end local 3 // java.lang.String str
        end local 2 // java.io.InputStream in
        end local 1 // javax.security.sasl.SaslClient sc
        end local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   17     0  this  Lcom/sun/jndi/ldap/sasl/SaslInputStream;
            0   17     1    sc  Ljavax/security/sasl/SaslClient;
            0   17     2    in  Ljava/io/InputStream;
            8   17     3   str  Ljava/lang/String;
      Exception table:
        from    to  target  type
           9    10      11  Class java.lang.NumberFormatException
    Exceptions:
      throws javax.security.sasl.SaslException
    MethodParameters:
      Name  Flags
      sc    
      in    

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
         0: .line 78
            iconst_1
            newarray 8
            astore 1 /* inBuf */
        start local 1 // byte[] inBuf
         1: .line 79
            aload 0 /* this */
            aload 1 /* inBuf */
            iconst_0
            iconst_1
            invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.read:([BII)I
            istore 2 /* count */
        start local 2 // int count
         2: .line 80
            iload 2 /* count */
            ifle 4
         3: .line 81
            aload 1 /* inBuf */
            iconst_0
            baload
            ireturn
         4: .line 83
      StackMap locals: byte[] int
      StackMap stack:
            iconst_m1
            ireturn
        end local 2 // int count
        end local 1 // byte[] inBuf
        end local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    5     0   this  Lcom/sun/jndi/ldap/sasl/SaslInputStream;
            1    5     1  inBuf  [B
            2    5     2  count  I
    Exceptions:
      throws java.io.IOException

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=4
        start local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
        start local 1 // byte[] inBuf
        start local 2 // int start
        start local 3 // int count
         0: .line 89
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
            arraylength
            if_icmplt 7
         1: .line 90
            aload 0 /* this */
            invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.fill:()I
            istore 4 /* actual */
        start local 4 // int actual
         2: .line 91
            goto 4
         3: .line 92
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.fill:()I
            istore 4 /* actual */
         4: .line 91
      StackMap locals:
      StackMap stack:
            iload 4 /* actual */
            ifeq 3
         5: .line 94
            iload 4 /* actual */
            iconst_m1
            if_icmpne 7
         6: .line 95
            iconst_m1
            ireturn
        end local 4 // int actual
         7: .line 99
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
            arraylength
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
            isub
            istore 4 /* avail */
        start local 4 // int avail
         8: .line 100
            iload 3 /* count */
            iload 4 /* avail */
            if_icmple 12
         9: .line 104
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
            aload 1 /* inBuf */
            iload 2 /* start */
            iload 4 /* avail */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        10: .line 105
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
            arraylength
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
        11: .line 106
            iload 4 /* avail */
            ireturn
        12: .line 110
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
            aload 1 /* inBuf */
            iload 2 /* start */
            iload 3 /* count */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        13: .line 111
            aload 0 /* this */
            dup
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
            iload 3 /* count */
            iadd
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
        14: .line 112
            iload 3 /* count */
            ireturn
        end local 4 // int avail
        end local 3 // int count
        end local 2 // int start
        end local 1 // byte[] inBuf
        end local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   15     0    this  Lcom/sun/jndi/ldap/sasl/SaslInputStream;
            0   15     1   inBuf  [B
            0   15     2   start  I
            0   15     3   count  I
            2    7     4  actual  I
            8   15     4   avail  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      inBuf  
      start  
      count  

  private int fill();
    descriptor: ()I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=3, args_size=1
        start local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
         0: .line 123
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.lenBuf:[B
            iconst_4
            invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.readFully:([BI)I
            istore 1 /* actual */
        start local 1 // int actual
         1: .line 124
            iload 1 /* actual */
            iconst_4
            if_icmpeq 3
         2: .line 125
            iconst_m1
            ireturn
         3: .line 127
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.lenBuf:[B
            iconst_0
            iconst_4
            invokestatic com.sun.jndi.ldap.sasl.SaslInputStream.networkByteOrderToInt:([BII)I
            istore 2 /* len */
        start local 2 // int len
         4: .line 129
            iload 2 /* len */
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
            if_icmple 10
         5: .line 130
            new java.io.IOException
            dup
         6: .line 131
            new java.lang.StringBuilder
            dup
            iload 2 /* len */
            invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc "exceeds the negotiated receive buffer size limit:"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         7: .line 132
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
         8: .line 131
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         9: .line 130
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        10: .line 140
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.saslBuffer:[B
            iload 2 /* len */
            invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.readFully:([BI)I
            istore 1 /* actual */
        11: .line 141
            iload 1 /* actual */
            iload 2 /* len */
            if_icmpeq 15
        12: .line 142
            new java.io.EOFException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Expecting to read "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 2 /* len */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
        13: .line 143
            ldc " bytes but got "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            iload 1 /* actual */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " bytes before EOF"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        14: .line 142
            invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
            athrow
        15: .line 147
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.sc:Ljavax/security/sasl/SaslClient;
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.saslBuffer:[B
            iconst_0
            iload 2 /* len */
            invokeinterface javax.security.sasl.SaslClient.unwrap:([BII)[B
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
        16: .line 149
            aload 0 /* this */
            iconst_0
            putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
        17: .line 151
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
            arraylength
            ireturn
        end local 2 // int len
        end local 1 // int actual
        end local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   18     0    this  Lcom/sun/jndi/ldap/sasl/SaslInputStream;
            1   18     1  actual  I
            4   18     2     len  I
    Exceptions:
      throws java.io.IOException

  private int readFully(byte[], int);
    descriptor: ([BI)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=5, args_size=3
        start local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
        start local 1 // byte[] inBuf
        start local 2 // int total
         0: .line 159
            iconst_0
            istore 4 /* pos */
        start local 4 // int pos
         1: .line 165
            goto 9
         2: .line 166
      StackMap locals: com.sun.jndi.ldap.sasl.SaslInputStream byte[] int top int
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.in:Ljava/io/InputStream;
            aload 1 /* inBuf */
            iload 4 /* pos */
            iload 2 /* total */
            invokevirtual java.io.InputStream.read:([BII)I
            istore 3 /* count */
        start local 3 // int count
         3: .line 172
            iload 3 /* count */
            iconst_m1
            if_icmpne 7
         4: .line 173
            iload 4 /* pos */
            ifne 5
            iconst_m1
            goto 6
      StackMap locals: com.sun.jndi.ldap.sasl.SaslInputStream byte[] int int int
      StackMap stack:
         5: iload 4 /* pos */
      StackMap locals:
      StackMap stack: int
         6: ireturn
         7: .line 175
      StackMap locals:
      StackMap stack:
            iload 4 /* pos */
            iload 3 /* count */
            iadd
            istore 4 /* pos */
         8: .line 176
            iload 2 /* total */
            iload 3 /* count */
            isub
            istore 2 /* total */
        end local 3 // int count
         9: .line 165
      StackMap locals: com.sun.jndi.ldap.sasl.SaslInputStream byte[] int top int
      StackMap stack:
            iload 2 /* total */
            ifgt 2
        10: .line 178
            iload 4 /* pos */
            ireturn
        end local 4 // int pos
        end local 2 // int total
        end local 1 // byte[] inBuf
        end local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   11     0   this  Lcom/sun/jndi/ldap/sasl/SaslInputStream;
            0   11     1  inBuf  [B
            0   11     2  total  I
            3    9     3  count  I
            1   11     4    pos  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      inBuf  
      total  

  public int available();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
         0: .line 182
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
            arraylength
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
            isub
            ireturn
        end local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/jndi/ldap/sasl/SaslInputStream;
    Exceptions:
      throws java.io.IOException

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=3, args_size=1
        start local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
         0: .line 186
            aconst_null
            astore 1 /* save */
        start local 1 // javax.security.sasl.SaslException save
         1: .line 188
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.sc:Ljavax/security/sasl/SaslClient;
            invokeinterface javax.security.sasl.SaslClient.dispose:()V
         2: .line 189
            goto 5
      StackMap locals: com.sun.jndi.ldap.sasl.SaslInputStream javax.security.sasl.SaslException
      StackMap stack: javax.security.sasl.SaslException
         3: astore 2 /* e */
        start local 2 // javax.security.sasl.SaslException e
         4: .line 191
            aload 2 /* e */
            astore 1 /* save */
        end local 2 // javax.security.sasl.SaslException e
         5: .line 194
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jndi.ldap.sasl.SaslInputStream.in:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         6: .line 196
            aload 1 /* save */
            ifnull 8
         7: .line 197
            aload 1 /* save */
            athrow
         8: .line 199
      StackMap locals:
      StackMap stack:
            return
        end local 1 // javax.security.sasl.SaslException save
        end local 0 // com.sun.jndi.ldap.sasl.SaslInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Lcom/sun/jndi/ldap/sasl/SaslInputStream;
            1    9     1  save  Ljavax/security/sasl/SaslException;
            4    5     2     e  Ljavax/security/sasl/SaslException;
      Exception table:
        from    to  target  type
           1     2       3  Class javax.security.sasl.SaslException
    Exceptions:
      throws java.io.IOException

  private static int networkByteOrderToInt(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=5, args_size=3
        start local 0 // byte[] buf
        start local 1 // int start
        start local 2 // int count
         0: .line 206
            iload 2 /* count */
            iconst_4
            if_icmple 2
         1: .line 207
            new java.lang.IllegalArgumentException
            dup
            ldc "Cannot handle more than 4 bytes"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 210
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 3 /* answer */
        start local 3 // int answer
         3: .line 212
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         4: goto 8
         5: .line 213
      StackMap locals: int int
      StackMap stack:
            iload 3 /* answer */
            bipush 8
            ishl
            istore 3 /* answer */
         6: .line 214
            iload 3 /* answer */
            aload 0 /* buf */
            iload 1 /* start */
            iload 4 /* i */
            iadd
            baload
            sipush 255
            iand
            ior
            istore 3 /* answer */
         7: .line 212
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
         8: iload 4 /* i */
            iload 2 /* count */
            if_icmplt 5
        end local 4 // int i
         9: .line 216
            iload 3 /* answer */
            ireturn
        end local 3 // int answer
        end local 2 // int count
        end local 1 // int start
        end local 0 // byte[] buf
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   10     0     buf  [B
            0   10     1   start  I
            0   10     2   count  I
            3   10     3  answer  I
            4    9     4       i  I
    MethodParameters:
       Name  Flags
      buf    
      start  
      count  
}
SourceFile: "SaslInputStream.java"