public class javax.crypto.CipherOutputStream extends java.io.FilterOutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.crypto.CipherOutputStream
super_class: java.io.FilterOutputStream
{
private javax.crypto.Cipher cipher;
descriptor: Ljavax/crypto/Cipher;
flags: (0x0002) ACC_PRIVATE
private java.io.OutputStream output;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
private byte[] ibuffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] obuffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private void ensureCapacity(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
iload 1
invokevirtual javax.crypto.Cipher.getOutputSize:(I)I
istore 2
start local 2 1: aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
ifnull 2
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
arraylength
iload 2
if_icmpge 3
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
newarray 8
putfield javax.crypto.CipherOutputStream.obuffer:[B
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/crypto/CipherOutputStream;
0 4 1 inLen I
1 4 2 minLen I
MethodParameters:
Name Flags
inLen
public void <init>(java.io.OutputStream, javax.crypto.Cipher);
descriptor: (Ljava/io/OutputStream;Ljavax/crypto/Cipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_1
newarray 8
putfield javax.crypto.CipherOutputStream.ibuffer:[B
2: aload 0
aconst_null
putfield javax.crypto.CipherOutputStream.obuffer:[B
3: aload 0
iconst_0
putfield javax.crypto.CipherOutputStream.closed:Z
4: aload 0
aload 1
putfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
5: aload 0
aload 2
putfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/crypto/CipherOutputStream;
0 7 1 os Ljava/io/OutputStream;
0 7 2 c Ljavax/crypto/Cipher;
MethodParameters:
Name Flags
os
c
protected void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_1
newarray 8
putfield javax.crypto.CipherOutputStream.ibuffer:[B
2: aload 0
aconst_null
putfield javax.crypto.CipherOutputStream.obuffer:[B
3: aload 0
iconst_0
putfield javax.crypto.CipherOutputStream.closed:Z
4: aload 0
aload 1
putfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
5: aload 0
new javax.crypto.NullCipher
dup
invokespecial javax.crypto.NullCipher.<init>:()V
putfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/crypto/CipherOutputStream;
0 7 1 os Ljava/io/OutputStream;
MethodParameters:
Name Flags
os
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.crypto.CipherOutputStream.ibuffer:[B
iconst_0
iload 1
i2b
bastore
1: aload 0
iconst_1
invokevirtual javax.crypto.CipherOutputStream.ensureCapacity:(I)V
2: aload 0
getfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
aload 0
getfield javax.crypto.CipherOutputStream.ibuffer:[B
iconst_0
iconst_1
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
invokevirtual javax.crypto.Cipher.update:([BII[B)I
istore 2
start local 2 3: iload 2
ifle 8
4: aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
iconst_0
iload 2
invokevirtual java.io.OutputStream.write:([BII)V
end local 2 5: goto 8
StackMap locals:
StackMap stack: javax.crypto.ShortBufferException
6: astore 2
start local 2 7: new java.io.IOException
dup
aload 2
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/crypto/CipherOutputStream;
0 9 1 b I
3 5 2 ostored I
7 8 2 sbe Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
2 5 6 Class javax.crypto.ShortBufferException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual javax.crypto.CipherOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/crypto/CipherOutputStream;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 3
invokevirtual javax.crypto.CipherOutputStream.ensureCapacity:(I)V
1: aload 0
getfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
aload 1
iload 2
iload 3
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
invokevirtual javax.crypto.Cipher.update:([BII[B)I
istore 4
start local 4 2: iload 4
ifle 7
3: aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
iconst_0
iload 4
invokevirtual java.io.OutputStream.write:([BII)V
end local 4 4: goto 7
StackMap locals:
StackMap stack: javax.crypto.ShortBufferException
5: astore 4
start local 4 6: new java.io.IOException
dup
aload 4
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/crypto/CipherOutputStream;
0 8 1 b [B
0 8 2 off I
0 8 3 len I
2 4 4 ostored I
6 7 4 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
1 4 5 Class javax.crypto.ShortBufferException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/crypto/CipherOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.crypto.CipherOutputStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield javax.crypto.CipherOutputStream.closed:Z
3: aload 0
iconst_0
invokevirtual javax.crypto.CipherOutputStream.ensureCapacity:(I)V
4: aload 0
getfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
iconst_0
invokevirtual javax.crypto.Cipher.doFinal:([BI)I
istore 1
start local 1 5: iload 1
ifle 9
6: aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
iconst_0
iload 1
invokevirtual java.io.OutputStream.write:([BII)V
end local 1 7: goto 9
8: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
pop
9: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield javax.crypto.CipherOutputStream.obuffer:[B
10: aload 0
invokevirtual javax.crypto.CipherOutputStream.flush:()V
11: goto 13
StackMap locals:
StackMap stack: java.io.IOException
12: pop
13: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
14: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/crypto/CipherOutputStream;
5 7 1 ostored I
Exception table:
from to target type
4 7 8 Class javax.crypto.IllegalBlockSizeException
4 7 8 Class javax.crypto.BadPaddingException
4 7 8 Class javax.crypto.ShortBufferException
10 11 12 Class java.io.IOException
Exceptions:
throws java.io.IOException
}
SourceFile: "CipherOutputStream.java"