public class org.bouncycastle.util.io.pem.PemWriter extends java.io.BufferedWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.util.io.pem.PemWriter
super_class: java.io.BufferedWriter
{
private static final int LINE_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 64
private final int nlLength;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private char[] buf;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
1: aload 0
bipush 64
newarray 5
putfield org.bouncycastle.util.io.pem.PemWriter.buf:[C
2: invokestatic org.bouncycastle.util.Strings.lineSeparator:()Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnull 6
4: aload 0
aload 2
invokevirtual java.lang.String.length:()I
putfield org.bouncycastle.util.io.pem.PemWriter.nlLength:I
5: goto 7
6: StackMap locals: org.bouncycastle.util.io.pem.PemWriter java.io.Writer java.lang.String
StackMap stack:
aload 0
iconst_2
putfield org.bouncycastle.util.io.pem.PemWriter.nlLength:I
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/util/io/pem/PemWriter;
0 8 1 out Ljava/io/Writer;
3 8 2 nl Ljava/lang/String;
MethodParameters:
Name Flags
out
public int getOutputSize(org.bouncycastle.util.io.pem.PemObject);
descriptor: (Lorg/bouncycastle/util/io/pem/PemObject;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: iconst_2
aload 1
invokevirtual org.bouncycastle.util.io.pem.PemObject.getType:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
bipush 10
iadd
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.nlLength:I
iadd
imul
bipush 6
iadd
iconst_4
iadd
istore 2
start local 2 1: aload 1
invokevirtual org.bouncycastle.util.io.pem.PemObject.getHeaders:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 8
2: aload 1
invokevirtual org.bouncycastle.util.io.pem.PemObject.getHeaders:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 3: goto 6
4: StackMap locals: int java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bouncycastle.util.io.pem.PemHeader
astore 4
start local 4 5: iload 2
aload 4
invokevirtual org.bouncycastle.util.io.pem.PemHeader.getName:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ldc ": "
invokevirtual java.lang.String.length:()I
iadd
aload 4
invokevirtual org.bouncycastle.util.io.pem.PemHeader.getValue:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iadd
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.nlLength:I
iadd
iadd
istore 2
end local 4 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 3 7: iload 2
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.nlLength:I
iadd
istore 2
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.bouncycastle.util.io.pem.PemObject.getContent:()[B
arraylength
iconst_2
iadd
iconst_3
idiv
iconst_4
imul
istore 3
start local 3 9: iload 2
iload 3
iload 3
bipush 64
iadd
iconst_1
isub
bipush 64
idiv
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.nlLength:I
imul
iadd
iadd
istore 2
10: iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bouncycastle/util/io/pem/PemWriter;
0 11 1 obj Lorg/bouncycastle/util/io/pem/PemObject;
1 11 2 size I
3 7 3 it Ljava/util/Iterator;
5 6 4 hdr Lorg/bouncycastle/util/io/pem/PemHeader;
9 11 3 dataLen I
MethodParameters:
Name Flags
obj
public void writeObject(org.bouncycastle.util.io.pem.PemObjectGenerator);
descriptor: (Lorg/bouncycastle/util/io/pem/PemObjectGenerator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.bouncycastle.util.io.pem.PemObjectGenerator.generate:()Lorg/bouncycastle/util/io/pem/PemObject;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.bouncycastle.util.io.pem.PemObject.getType:()Ljava/lang/String;
invokevirtual org.bouncycastle.util.io.pem.PemWriter.writePreEncapsulationBoundary:(Ljava/lang/String;)V
2: aload 2
invokevirtual org.bouncycastle.util.io.pem.PemObject.getHeaders:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 12
3: aload 2
invokevirtual org.bouncycastle.util.io.pem.PemObject.getHeaders:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 4: goto 10
5: StackMap locals: org.bouncycastle.util.io.pem.PemObject java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bouncycastle.util.io.pem.PemHeader
astore 4
start local 4 6: aload 0
aload 4
invokevirtual org.bouncycastle.util.io.pem.PemHeader.getName:()Ljava/lang/String;
invokevirtual org.bouncycastle.util.io.pem.PemWriter.write:(Ljava/lang/String;)V
7: aload 0
ldc ": "
invokevirtual org.bouncycastle.util.io.pem.PemWriter.write:(Ljava/lang/String;)V
8: aload 0
aload 4
invokevirtual org.bouncycastle.util.io.pem.PemHeader.getValue:()Ljava/lang/String;
invokevirtual org.bouncycastle.util.io.pem.PemWriter.write:(Ljava/lang/String;)V
9: aload 0
invokevirtual org.bouncycastle.util.io.pem.PemWriter.newLine:()V
end local 4 10: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 11: aload 0
invokevirtual org.bouncycastle.util.io.pem.PemWriter.newLine:()V
12: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.bouncycastle.util.io.pem.PemObject.getContent:()[B
invokevirtual org.bouncycastle.util.io.pem.PemWriter.writeEncoded:([B)V
13: aload 0
aload 2
invokevirtual org.bouncycastle.util.io.pem.PemObject.getType:()Ljava/lang/String;
invokevirtual org.bouncycastle.util.io.pem.PemWriter.writePostEncapsulationBoundary:(Ljava/lang/String;)V
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/bouncycastle/util/io/pem/PemWriter;
0 15 1 objGen Lorg/bouncycastle/util/io/pem/PemObjectGenerator;
1 15 2 obj Lorg/bouncycastle/util/io/pem/PemObject;
4 11 3 it Ljava/util/Iterator;
6 10 4 hdr Lorg/bouncycastle/util/io/pem/PemHeader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
objGen
private void writeEncoded(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.bouncycastle.util.encoders.Base64.encode:([B)[B
astore 1
1: iconst_0
istore 2
start local 2 2: goto 13
3: StackMap locals: int
StackMap stack:
iconst_0
istore 3
start local 3 4: goto 9
5: StackMap locals: int
StackMap stack:
iload 2
iload 3
iadd
aload 1
arraylength
if_icmplt 7
6: goto 10
7: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.buf:[C
iload 3
aload 1
iload 2
iload 3
iadd
baload
i2c
castore
8: iinc 3 1
9: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.buf:[C
arraylength
if_icmpne 5
10: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.buf:[C
iconst_0
iload 3
invokevirtual org.bouncycastle.util.io.pem.PemWriter.write:([CII)V
11: aload 0
invokevirtual org.bouncycastle.util.io.pem.PemWriter.newLine:()V
end local 3 12: iload 2
aload 0
getfield org.bouncycastle.util.io.pem.PemWriter.buf:[C
arraylength
iadd
istore 2
StackMap locals:
StackMap stack:
13: iload 2
aload 1
arraylength
if_icmplt 3
end local 2 14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/bouncycastle/util/io/pem/PemWriter;
0 15 1 bytes [B
2 14 2 i I
4 12 3 index I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
private void writePreEncapsulationBoundary(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
ldc "-----BEGIN "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "-----"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.bouncycastle.util.io.pem.PemWriter.write:(Ljava/lang/String;)V
1: aload 0
invokevirtual org.bouncycastle.util.io.pem.PemWriter.newLine:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/util/io/pem/PemWriter;
0 3 1 type Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
type
private void writePostEncapsulationBoundary(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
ldc "-----END "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "-----"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.bouncycastle.util.io.pem.PemWriter.write:(Ljava/lang/String;)V
1: aload 0
invokevirtual org.bouncycastle.util.io.pem.PemWriter.newLine:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/util/io/pem/PemWriter;
0 3 1 type Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
type
}
SourceFile: "PemWriter.java"