public final class org.bouncycastle.util.Strings
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.bouncycastle.util.Strings
super_class: java.lang.Object
{
private static java.lang.String LINE_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.bouncycastle.util.Strings$1
dup
invokespecial org.bouncycastle.util.Strings$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
putstatic org.bouncycastle.util.Strings.LINE_SEPARATOR:Ljava/lang/String;
1: goto 7
2: StackMap locals:
StackMap stack: java.lang.Exception
pop
3: ldc "%n"
iconst_0
anewarray java.lang.Object
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
putstatic org.bouncycastle.util.Strings.LINE_SEPARATOR:Ljava/lang/String;
4: goto 7
5: StackMap locals:
StackMap stack: java.lang.Exception
pop
6: ldc "\n"
putstatic org.bouncycastle.util.Strings.LINE_SEPARATOR:Ljava/lang/String;
7: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
0 1 2 Class java.lang.Exception
3 4 5 Class java.lang.Exception
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/Strings;
public static java.lang.String fromUTF8ByteArray(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
arraylength
newarray 5
astore 1
start local 1 1: aload 0
aload 1
invokestatic org.bouncycastle.util.encoders.UTF8.transcodeToUTF16:([B[C)I
istore 2
start local 2 2: iload 2
ifge 4
3: new java.lang.IllegalArgumentException
dup
ldc "Invalid UTF-8 input"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: char[] int
StackMap stack:
new java.lang.String
dup
aload 1
iconst_0
iload 2
invokespecial java.lang.String.<init>:([CII)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 bytes [B
1 5 1 chars [C
2 5 2 len I
MethodParameters:
Name Flags
bytes
public static byte[] toUTF8ByteArray(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.toCharArray:()[C
invokestatic org.bouncycastle.util.Strings.toUTF8ByteArray:([C)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 string Ljava/lang/String;
MethodParameters:
Name Flags
string
public static byte[] toUTF8ByteArray(char[]);
descriptor: ([C)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
invokestatic org.bouncycastle.util.Strings.toUTF8ByteArray:([CLjava/io/OutputStream;)V
2: goto 5
3: StackMap locals: char[] java.io.ByteArrayOutputStream
StackMap stack: java.io.IOException
pop
4: new java.lang.IllegalStateException
dup
ldc "cannot encode string to byte array!"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 string [C
1 6 1 bOut Ljava/io/ByteArrayOutputStream;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
string
public static void toUTF8ByteArray(char[], java.io.OutputStream);
descriptor: ([CLjava/io/OutputStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 29
3: StackMap locals: char[] int
StackMap stack:
aload 2
iload 3
caload
istore 4
start local 4 4: iload 4
sipush 128
if_icmpge 7
5: aload 1
iload 4
invokevirtual java.io.OutputStream.write:(I)V
6: goto 28
7: StackMap locals: int
StackMap stack:
iload 4
sipush 2048
if_icmpge 11
8: aload 1
sipush 192
iload 4
bipush 6
ishr
ior
invokevirtual java.io.OutputStream.write:(I)V
9: aload 1
sipush 128
iload 4
bipush 63
iand
ior
invokevirtual java.io.OutputStream.write:(I)V
10: goto 28
11: StackMap locals:
StackMap stack:
iload 4
ldc 55296
if_icmplt 25
iload 4
ldc 57343
if_icmpgt 25
12: iload 3
iconst_1
iadd
aload 2
arraylength
if_icmplt 14
13: new java.lang.IllegalStateException
dup
ldc "invalid UTF-16 codepoint"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
iload 4
istore 5
start local 5 15: aload 2
iinc 3 1
iload 3
caload
istore 4
16: iload 4
istore 6
start local 6 17: iload 5
ldc 56319
if_icmple 19
18: new java.lang.IllegalStateException
dup
ldc "invalid UTF-16 codepoint"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: int int
StackMap stack:
iload 5
sipush 1023
iand
bipush 10
ishl
iload 6
sipush 1023
iand
ior
ldc 65536
iadd
istore 7
start local 7 20: aload 1
sipush 240
iload 7
bipush 18
ishr
ior
invokevirtual java.io.OutputStream.write:(I)V
21: aload 1
sipush 128
iload 7
bipush 12
ishr
bipush 63
iand
ior
invokevirtual java.io.OutputStream.write:(I)V
22: aload 1
sipush 128
iload 7
bipush 6
ishr
bipush 63
iand
ior
invokevirtual java.io.OutputStream.write:(I)V
23: aload 1
sipush 128
iload 7
bipush 63
iand
ior
invokevirtual java.io.OutputStream.write:(I)V
end local 7 end local 6 end local 5 24: goto 28
25: StackMap locals:
StackMap stack:
aload 1
sipush 224
iload 4
bipush 12
ishr
ior
invokevirtual java.io.OutputStream.write:(I)V
26: aload 1
sipush 128
iload 4
bipush 6
ishr
bipush 63
iand
ior
invokevirtual java.io.OutputStream.write:(I)V
27: aload 1
sipush 128
iload 4
bipush 63
iand
ior
invokevirtual java.io.OutputStream.write:(I)V
28: StackMap locals:
StackMap stack:
iinc 3 1
end local 4 29: StackMap locals:
StackMap stack:
iload 3
aload 2
arraylength
if_icmplt 3
30: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 string [C
0 31 1 sOut Ljava/io/OutputStream;
1 31 2 c [C
2 31 3 i I
4 29 4 ch C
15 24 5 W1 C
17 24 6 W2 C
20 24 7 codePoint I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
string
sOut
public static java.lang.String toUpperCase(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 9
4: StackMap locals: int char[] int
StackMap stack:
aload 2
iload 3
caload
istore 4
start local 4 5: bipush 97
iload 4
if_icmpgt 8
bipush 122
iload 4
if_icmplt 8
6: iconst_1
istore 1
7: aload 2
iload 3
iload 4
bipush 97
isub
bipush 65
iadd
i2c
castore
end local 4 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 2
arraylength
if_icmpne 4
end local 3 10: iload 1
ifeq 12
11: new java.lang.String
dup
aload 2
invokespecial java.lang.String.<init>:([C)V
areturn
12: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 string Ljava/lang/String;
1 13 1 changed Z
2 13 2 chars [C
3 10 3 i I
5 8 4 ch C
MethodParameters:
Name Flags
string
public static java.lang.String toLowerCase(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 9
4: StackMap locals: int char[] int
StackMap stack:
aload 2
iload 3
caload
istore 4
start local 4 5: bipush 65
iload 4
if_icmpgt 8
bipush 90
iload 4
if_icmplt 8
6: iconst_1
istore 1
7: aload 2
iload 3
iload 4
bipush 65
isub
bipush 97
iadd
i2c
castore
end local 4 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 2
arraylength
if_icmpne 4
end local 3 10: iload 1
ifeq 12
11: new java.lang.String
dup
aload 2
invokespecial java.lang.String.<init>:([C)V
areturn
12: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 string Ljava/lang/String;
1 13 1 changed Z
2 13 2 chars [C
3 10 3 i I
5 8 4 ch C
MethodParameters:
Name Flags
string
public static byte[] toByteArray(char[]);
descriptor: ([C)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
arraylength
newarray 8
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: byte[] int
StackMap stack:
aload 1
iload 2
aload 0
iload 2
caload
i2b
bastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 1
arraylength
if_icmpne 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 chars [C
1 7 1 bytes [B
2 6 2 i I
MethodParameters:
Name Flags
chars
public static byte[] toByteArray(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
newarray 8
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 6
3: StackMap locals: byte[] int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 4: aload 1
iload 2
iload 3
i2b
bastore
end local 3 5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 1
arraylength
if_icmpne 3
end local 2 7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 string Ljava/lang/String;
1 8 1 bytes [B
2 7 2 i I
4 5 3 ch C
MethodParameters:
Name Flags
string
public static int toByteArray(java.lang.String, byte[], int);
descriptor: (Ljava/lang/String;[BI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.lang.String.length:()I
istore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 4: aload 1
iload 2
iload 4
iadd
iload 5
i2b
bastore
end local 5 5: iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 3
if_icmplt 3
end local 4 7: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 s Ljava/lang/String;
0 8 1 buf [B
0 8 2 off I
1 8 3 count I
2 7 4 i I
4 5 5 c C
MethodParameters:
Name Flags
s
buf
off
public static java.lang.String fromByteArray(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.String
dup
aload 0
invokestatic org.bouncycastle.util.Strings.asCharArray:([B)[C
invokespecial java.lang.String.<init>:([C)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 bytes [B
MethodParameters:
Name Flags
bytes
public static char[] asCharArray(byte[]);
descriptor: ([B)[C
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
arraylength
newarray 5
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: char[] int
StackMap stack:
aload 1
iload 2
aload 0
iload 2
baload
sipush 255
iand
i2c
castore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 1
arraylength
if_icmpne 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 bytes [B
1 7 1 chars [C
2 6 2 i I
MethodParameters:
Name Flags
bytes
public static java.lang.String[] split(java.lang.String, char);
descriptor: (Ljava/lang/String;C)[Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 2
start local 2 1: iconst_1
istore 3
start local 3 2: goto 11
3: StackMap locals: java.util.Vector int
StackMap stack:
aload 0
iload 1
invokevirtual java.lang.String.indexOf:(I)I
istore 5
start local 5 4: iload 5
ifle 9
5: aload 0
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 6: aload 2
aload 4
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
7: aload 0
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
8: goto 11
end local 4 9: StackMap locals: java.lang.String int java.util.Vector int top int
StackMap stack:
iconst_0
istore 3
10: aload 2
aload 0
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 5 11: StackMap locals: java.lang.String int java.util.Vector int
StackMap stack:
iload 3
ifne 3
12: aload 2
invokevirtual java.util.Vector.size:()I
anewarray java.lang.String
astore 5
start local 5 13: iconst_0
istore 6
start local 6 14: goto 17
15: StackMap locals: java.lang.String int java.util.Vector int top java.lang.String[] int
StackMap stack:
aload 5
iload 6
aload 2
iload 6
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast java.lang.String
aastore
16: iinc 6 1
StackMap locals:
StackMap stack:
17: iload 6
aload 5
arraylength
if_icmpne 15
end local 6 18: aload 5
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 input Ljava/lang/String;
0 19 1 delimiter C
1 19 2 v Ljava/util/Vector;
2 19 3 moreTokens Z
6 9 4 subString Ljava/lang/String;
4 11 5 tokenLocation I
13 19 5 res [Ljava/lang/String;
14 18 6 i I
MethodParameters:
Name Flags
input
delimiter
public static org.bouncycastle.util.StringList newList();
descriptor: ()Lorg/bouncycastle/util/StringList;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.bouncycastle.util.Strings$StringListImpl
dup
invokespecial org.bouncycastle.util.Strings$StringListImpl.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String lineSeparator();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.bouncycastle.util.Strings.LINE_SEPARATOR:Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Strings.java"
NestMembers:
org.bouncycastle.util.Strings$1 org.bouncycastle.util.Strings$StringListImpl
InnerClasses:
org.bouncycastle.util.Strings$1
private StringListImpl = org.bouncycastle.util.Strings$StringListImpl of org.bouncycastle.util.Strings