class sun.datatransfer.DataFlavorUtil$CharsetComparator implements java.util.Comparator<java.lang.String>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.datatransfer.DataFlavorUtil$CharsetComparator
super_class: java.lang.Object
{
static final sun.datatransfer.DataFlavorUtil$CharsetComparator INSTANCE;
descriptor: Lsun/datatransfer/DataFlavorUtil$CharsetComparator;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final java.util.Map<java.lang.String, java.lang.Integer> charsets;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
private static final java.lang.Integer DEFAULT_CHARSET_INDEX;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Integer OTHER_CHARSET_INDEX;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Integer WORST_CHARSET_INDEX;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Integer UNSUPPORTED_CHARSET_INDEX;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String UNSUPPORTED_CHARSET;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "UNSUPPORTED"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new sun.datatransfer.DataFlavorUtil$CharsetComparator
dup
invokespecial sun.datatransfer.DataFlavorUtil$CharsetComparator.<init>:()V
putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.INSTANCE:Lsun/datatransfer/DataFlavorUtil$CharsetComparator;
1: iconst_2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.DEFAULT_CHARSET_INDEX:Ljava/lang/Integer;
2: iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.OTHER_CHARSET_INDEX:Ljava/lang/Integer;
3: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.WORST_CHARSET_INDEX:Ljava/lang/Integer;
4: ldc -2147483648
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.UNSUPPORTED_CHARSET_INDEX:Ljava/lang/Integer;
5: new java.util.HashMap
dup
bipush 8
fconst_1
invokespecial java.util.HashMap.<init>:(IF)V
astore 0
start local 0 6: aload 0
ldc "UTF-16LE"
invokestatic sun.datatransfer.DataFlavorUtil.canonicalName:(Ljava/lang/String;)Ljava/lang/String;
iconst_4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
ldc "UTF-16BE"
invokestatic sun.datatransfer.DataFlavorUtil.canonicalName:(Ljava/lang/String;)Ljava/lang/String;
iconst_5
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 0
ldc "UTF-8"
invokestatic sun.datatransfer.DataFlavorUtil.canonicalName:(Ljava/lang/String;)Ljava/lang/String;
bipush 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
ldc "UTF-16"
invokestatic sun.datatransfer.DataFlavorUtil.canonicalName:(Ljava/lang/String;)Ljava/lang/String;
bipush 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 0
ldc "US-ASCII"
invokestatic sun.datatransfer.DataFlavorUtil.canonicalName:(Ljava/lang/String;)Ljava/lang/String;
getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.WORST_CHARSET_INDEX:Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 0
invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.DEFAULT_CHARSET_INDEX:Ljava/lang/Integer;
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: aload 0
ldc "UNSUPPORTED"
getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.UNSUPPORTED_CHARSET_INDEX:Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 0
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.charsets:Ljava/util/Map;
end local 0 14: return
LocalVariableTable:
Start End Slot Name Signature
6 14 0 charsetsMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Lsun/datatransfer/DataFlavorUtil$CharsetComparator;
public int compare(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic sun.datatransfer.DataFlavorUtil$CharsetComparator.getEncoding:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: aload 2
invokestatic sun.datatransfer.DataFlavorUtil$CharsetComparator.getEncoding:(Ljava/lang/String;)Ljava/lang/String;
astore 2
2: getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.charsets:Ljava/util/Map;
aload 1
aload 2
getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.OTHER_CHARSET_INDEX:Ljava/lang/Integer;
invokestatic sun.datatransfer.DataFlavorUtil.compareIndices:(Ljava/util/Map;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Integer;)I
istore 3
start local 3 3: iload 3
ifne 5
4: aload 2
aload 1
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ireturn
5: StackMap locals: int
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/datatransfer/DataFlavorUtil$CharsetComparator;
0 6 1 charset1 Ljava/lang/String;
0 6 2 charset2 Ljava/lang/String;
3 6 3 comp I
MethodParameters:
Name Flags
charset1
charset2
static java.lang.String getEncoding(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.datatransfer.DataFlavorUtil.isEncodingSupported:(Ljava/lang/String;)Z
ifne 4
3: ldc "UNSUPPORTED"
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.datatransfer.DataFlavorUtil.canonicalName:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 5: getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.charsets:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 7
6: aload 1
goto 8
7: StackMap locals: java.lang.String
StackMap stack:
aload 0
8: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 charset Ljava/lang/String;
5 9 1 canonicalName Ljava/lang/String;
MethodParameters:
Name Flags
charset
public int compare(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast java.lang.String
aload 2
checkcast java.lang.String
invokevirtual sun.datatransfer.DataFlavorUtil$CharsetComparator.compare:(Ljava/lang/String;Ljava/lang/String;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Comparator<Ljava/lang/String;>;
SourceFile: "DataFlavorUtil.java"
NestHost: sun.datatransfer.DataFlavorUtil
InnerClasses:
private CharsetComparator = sun.datatransfer.DataFlavorUtil$CharsetComparator of sun.datatransfer.DataFlavorUtil