public final class com.mongodb.internal.HexUtils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.internal.HexUtils
super_class: java.lang.Object
{
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 Lcom/mongodb/internal/HexUtils;
public static java.lang.String toHex(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 8
StackMap locals: byte[] java.lang.StringBuilder top int int byte[]
StackMap stack:
2: aload 5
iload 3
baload
istore 2
start local 2 3: sipush 255
iload 2
iand
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 6
start local 6 4: aload 6
invokevirtual java.lang.String.length:()I
iconst_2
if_icmpge 6
5: aload 1
ldc "0"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals: byte[] java.lang.StringBuilder int int int byte[] java.lang.String
StackMap stack:
aload 1
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 6 end local 2 7: iinc 3 1
StackMap locals: byte[] java.lang.StringBuilder top int int byte[]
StackMap stack:
8: iload 3
iload 4
if_icmplt 2
9: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 bytes [B
1 10 1 sb Ljava/lang/StringBuilder;
3 7 2 b B
4 7 6 s Ljava/lang/String;
MethodParameters:
Name Flags
bytes final
public static java.lang.String hexMD5(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: ldc "MD5"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 1
start local 1 1: aload 1
invokevirtual java.security.MessageDigest.reset:()V
2: aload 1
aload 0
invokevirtual java.security.MessageDigest.update:([B)V
3: aload 1
invokevirtual java.security.MessageDigest.digest:()[B
astore 2
start local 2 4: aload 2
invokestatic com.mongodb.internal.HexUtils.toHex:([B)Ljava/lang/String;
5: areturn
end local 2 end local 1 6: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
pop
7: new java.lang.RuntimeException
dup
ldc "Error - this implementation of Java doesn't support MD5."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 data [B
1 6 1 md5 Ljava/security/MessageDigest;
4 6 2 digest [B
Exception table:
from to target type
0 5 6 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
data final
public static java.lang.String hexMD5(java.nio.ByteBuffer, int, int);
descriptor: (Ljava/nio/ByteBuffer;II)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
newarray 8
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 5
3: StackMap locals: byte[] int
StackMap stack:
aload 3
iload 4
aload 0
iload 1
iload 4
iadd
invokevirtual java.nio.ByteBuffer.get:(I)B
bastore
4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
iload 2
if_icmplt 3
end local 4 6: aload 3
invokestatic com.mongodb.internal.HexUtils.hexMD5:([B)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 buf Ljava/nio/ByteBuffer;
0 7 1 offset I
0 7 2 len I
1 7 3 b [B
2 6 4 i I
MethodParameters:
Name Flags
buf final
offset final
len final
}
SourceFile: "HexUtils.java"