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
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
iconst_0
putfield javax.crypto.CipherOutputStream.closed:Z
3: aload 0
aload 1
putfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
4: aload 0
aload 2
putfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/crypto/CipherOutputStream;
0 6 1 os Ljava/io/OutputStream;
0 6 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
iconst_0
putfield javax.crypto.CipherOutputStream.closed:Z
3: aload 0
aload 1
putfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
4: aload 0
new javax.crypto.NullCipher
dup
invokespecial javax.crypto.NullCipher.<init>:()V
putfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/crypto/CipherOutputStream;
0 6 1 os Ljava/io/OutputStream;
MethodParameters:
Name Flags
os
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, 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
aload 0
getfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
aload 0
getfield javax.crypto.CipherOutputStream.ibuffer:[B
iconst_0
iconst_1
invokevirtual javax.crypto.Cipher.update:([BII)[B
putfield javax.crypto.CipherOutputStream.obuffer:[B
2: aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
ifnull 5
3: aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
invokevirtual java.io.OutputStream.write:([B)V
4: aload 0
aconst_null
putfield javax.crypto.CipherOutputStream.obuffer:[B
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/crypto/CipherOutputStream;
0 6 1 b I
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=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 0
getfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
aload 1
iload 2
iload 3
invokevirtual javax.crypto.Cipher.update:([BII)[B
putfield javax.crypto.CipherOutputStream.obuffer:[B
1: aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
ifnull 4
2: aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
invokevirtual java.io.OutputStream.write:([B)V
3: aload 0
aconst_null
putfield javax.crypto.CipherOutputStream.obuffer:[B
4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/crypto/CipherOutputStream;
0 5 1 b [B
0 5 2 off I
0 5 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
ifnull 3
1: aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
aload 0
getfield javax.crypto.CipherOutputStream.obuffer:[B
invokevirtual java.io.OutputStream.write:([B)V
2: aload 0
aconst_null
putfield javax.crypto.CipherOutputStream.obuffer:[B
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.CipherOutputStream.output:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/crypto/CipherOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, 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
aload 0
getfield javax.crypto.CipherOutputStream.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.doFinal:()[B
putfield javax.crypto.CipherOutputStream.obuffer:[B
4: goto 7
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
5: pop
6: aload 0
aconst_null
putfield javax.crypto.CipherOutputStream.obuffer:[B
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.crypto.CipherOutputStream.flush:()V
8: goto 10
StackMap locals:
StackMap stack: java.io.IOException
9: pop
10: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.CipherOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/crypto/CipherOutputStream;
Exception table:
from to target type
3 4 5 Class javax.crypto.IllegalBlockSizeException
3 4 5 Class javax.crypto.BadPaddingException
7 8 9 Class java.io.IOException
Exceptions:
throws java.io.IOException
}
SourceFile: "CipherOutputStream.java"