class jdk.nio.zipfs.ZipCoder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.nio.zipfs.ZipCoder
super_class: java.lang.Object
{
private static final jdk.nio.zipfs.ZipCoder utf8;
descriptor: Ljdk/nio/zipfs/ZipCoder;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.nio.charset.Charset cs;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0002) ACC_PRIVATE
private final java.lang.ThreadLocal<java.nio.charset.CharsetDecoder> decTL;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/nio/charset/CharsetDecoder;>;
private final java.lang.ThreadLocal<java.nio.charset.CharsetEncoder> encTL;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/nio/charset/CharsetEncoder;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.nio.zipfs.ZipCoder$UTF8
dup
invokespecial jdk.nio.zipfs.ZipCoder$UTF8.<init>:()V
putstatic jdk.nio.zipfs.ZipCoder.utf8:Ljdk/nio/zipfs/ZipCoder;
return
LocalVariableTable:
Start End Slot Name Signature
public static jdk.nio.zipfs.ZipCoder get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/nio/zipfs/ZipCoder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 1
start local 1 1: aload 1
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
ldc "UTF-8"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: getstatic jdk.nio.zipfs.ZipCoder.utf8:Ljdk/nio/zipfs/ZipCoder;
areturn
3: StackMap locals: java.nio.charset.Charset
StackMap stack:
new jdk.nio.zipfs.ZipCoder
dup
aload 1
invokespecial jdk.nio.zipfs.ZipCoder.<init>:(Ljava/nio/charset/Charset;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 csn Ljava/lang/String;
1 4 1 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
csn
java.lang.String toString(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0000)
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.nio.zipfs.ZipCoder.decoder:()Ljava/nio/charset/CharsetDecoder;
invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
astore 2
start local 2 1: aload 1
arraylength
i2f
aload 2
invokevirtual java.nio.charset.CharsetDecoder.maxCharsPerByte:()F
fmul
f2i
istore 3
start local 3 2: iload 3
newarray 5
astore 4
start local 4 3: iload 3
ifne 5
4: new java.lang.String
dup
aload 4
invokespecial java.lang.String.<init>:([C)V
areturn
5: StackMap locals: java.nio.charset.CharsetDecoder int char[]
StackMap stack:
aload 1
iconst_0
aload 1
arraylength
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 5
start local 5 6: aload 4
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
astore 6
start local 6 7: aload 2
aload 5
aload 6
iconst_1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 7
start local 7 8: aload 7
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 10
9: new java.lang.IllegalArgumentException
dup
aload 7
invokevirtual java.nio.charset.CoderResult.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: java.nio.ByteBuffer java.nio.CharBuffer java.nio.charset.CoderResult
StackMap stack:
aload 2
aload 6
invokevirtual java.nio.charset.CharsetDecoder.flush:(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;
astore 7
11: aload 7
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 13
12: new java.lang.IllegalArgumentException
dup
aload 7
invokevirtual java.nio.charset.CoderResult.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
new java.lang.String
dup
aload 4
iconst_0
aload 6
invokevirtual java.nio.CharBuffer.position:()I
invokespecial java.lang.String.<init>:([CII)V
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/nio/zipfs/ZipCoder;
0 14 1 ba [B
1 14 2 cd Ljava/nio/charset/CharsetDecoder;
2 14 3 clen I
3 14 4 ca [C
6 14 5 bb Ljava/nio/ByteBuffer;
7 14 6 cb Ljava/nio/CharBuffer;
8 14 7 cr Ljava/nio/charset/CoderResult;
MethodParameters:
Name Flags
ba
byte[] getBytes(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0000)
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.nio.zipfs.ZipCoder.encoder:()Ljava/nio/charset/CharsetEncoder;
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.String.toCharArray:()[C
astore 3
start local 3 2: aload 3
arraylength
i2f
aload 2
invokevirtual java.nio.charset.CharsetEncoder.maxBytesPerChar:()F
fmul
f2i
istore 4
start local 4 3: iload 4
newarray 8
astore 5
start local 5 4: iload 4
ifne 6
5: aload 5
areturn
6: StackMap locals: jdk.nio.zipfs.ZipCoder java.lang.String java.nio.charset.CharsetEncoder char[] int byte[]
StackMap stack:
aload 5
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 6
start local 6 7: aload 3
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
astore 7
start local 7 8: aload 2
aload 7
aload 6
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 8
start local 8 9: aload 8
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 11
10: new java.lang.IllegalArgumentException
dup
aload 8
invokevirtual java.nio.charset.CoderResult.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: java.nio.ByteBuffer java.nio.CharBuffer java.nio.charset.CoderResult
StackMap stack:
aload 2
aload 6
invokevirtual java.nio.charset.CharsetEncoder.flush:(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
astore 8
12: aload 8
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 14
13: new java.lang.IllegalArgumentException
dup
aload 8
invokevirtual java.nio.charset.CoderResult.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.nio.ByteBuffer.position:()I
aload 5
arraylength
if_icmpne 16
15: aload 5
areturn
16: StackMap locals:
StackMap stack:
aload 5
aload 6
invokevirtual java.nio.ByteBuffer.position:()I
invokestatic java.util.Arrays.copyOf:([BI)[B
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/nio/zipfs/ZipCoder;
0 17 1 s Ljava/lang/String;
1 17 2 ce Ljava/nio/charset/CharsetEncoder;
2 17 3 ca [C
3 17 4 len I
4 17 5 ba [B
7 17 6 bb Ljava/nio/ByteBuffer;
8 17 7 cb Ljava/nio/CharBuffer;
9 17 8 cr Ljava/nio/charset/CoderResult;
MethodParameters:
Name Flags
s
boolean isUTF8();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nio.zipfs.ZipCoder.cs:Ljava/nio/charset/Charset;
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nio/zipfs/ZipCoder;
private void <init>(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield jdk.nio.zipfs.ZipCoder.decTL:Ljava/lang/ThreadLocal;
2: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield jdk.nio.zipfs.ZipCoder.encTL:Ljava/lang/ThreadLocal;
3: aload 0
aload 1
putfield jdk.nio.zipfs.ZipCoder.cs:Ljava/nio/charset/Charset;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nio/zipfs/ZipCoder;
0 5 1 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
cs
private java.nio.charset.CharsetDecoder decoder();
descriptor: ()Ljava/nio/charset/CharsetDecoder;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.nio.zipfs.ZipCoder.decTL:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.nio.charset.CharsetDecoder
astore 1
start local 1 1: aload 1
ifnonnull 7
2: aload 0
getfield jdk.nio.zipfs.ZipCoder.cs:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
3: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
4: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
5: astore 1
6: aload 0
getfield jdk.nio.zipfs.ZipCoder.decTL:Ljava/lang/ThreadLocal;
aload 1
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
7: StackMap locals: java.nio.charset.CharsetDecoder
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nio/zipfs/ZipCoder;
1 8 1 dec Ljava/nio/charset/CharsetDecoder;
private java.nio.charset.CharsetEncoder encoder();
descriptor: ()Ljava/nio/charset/CharsetEncoder;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.nio.zipfs.ZipCoder.encTL:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.nio.charset.CharsetEncoder
astore 1
start local 1 1: aload 1
ifnonnull 7
2: aload 0
getfield jdk.nio.zipfs.ZipCoder.cs:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
3: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
4: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
5: astore 1
6: aload 0
getfield jdk.nio.zipfs.ZipCoder.encTL:Ljava/lang/ThreadLocal;
aload 1
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
7: StackMap locals: java.nio.charset.CharsetEncoder
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nio/zipfs/ZipCoder;
1 8 1 enc Ljava/nio/charset/CharsetEncoder;
}
SourceFile: "ZipCoder.java"
NestMembers:
jdk.nio.zipfs.ZipCoder$UTF8
InnerClasses:
UTF8 = jdk.nio.zipfs.ZipCoder$UTF8 of jdk.nio.zipfs.ZipCoder