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: .line 306
            new sun.datatransfer.DataFlavorUtil$CharsetComparator
            dup
            invokespecial sun.datatransfer.DataFlavorUtil$CharsetComparator.<init>:()V
            putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.INSTANCE:Lsun/datatransfer/DataFlavorUtil$CharsetComparator;
         1: .line 310
            iconst_2
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.DEFAULT_CHARSET_INDEX:Ljava/lang/Integer;
         2: .line 311
            iconst_1
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.OTHER_CHARSET_INDEX:Ljava/lang/Integer;
         3: .line 312
            iconst_0
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.WORST_CHARSET_INDEX:Ljava/lang/Integer;
         4: .line 313
            ldc -2147483648
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.UNSUPPORTED_CHARSET_INDEX:Ljava/lang/Integer;
         5: .line 318
            new java.util.HashMap
            dup
            bipush 8
            fconst_1
            invokespecial java.util.HashMap.<init>:(IF)V
            astore 0 /* charsetsMap */
        start local 0 // java.util.Map charsetsMap
         6: .line 321
            aload 0 /* charsetsMap */
            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: .line 322
            aload 0 /* charsetsMap */
            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: .line 323
            aload 0 /* charsetsMap */
            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: .line 324
            aload 0 /* charsetsMap */
            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: .line 327
            aload 0 /* charsetsMap */
            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: .line 329
            aload 0 /* charsetsMap */
            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: .line 331
            aload 0 /* charsetsMap */
            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: .line 333
            aload 0 /* charsetsMap */
            invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
            putstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.charsets:Ljava/util/Map;
        end local 0 // java.util.Map charsetsMap
        14: .line 334
            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 // sun.datatransfer.DataFlavorUtil$CharsetComparator this
         0: .line 305
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.datatransfer.DataFlavorUtil$CharsetComparator this
      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 // sun.datatransfer.DataFlavorUtil$CharsetComparator this
        start local 1 // java.lang.String charset1
        start local 2 // java.lang.String charset2
         0: .line 359
            aload 1 /* charset1 */
            invokestatic sun.datatransfer.DataFlavorUtil$CharsetComparator.getEncoding:(Ljava/lang/String;)Ljava/lang/String;
            astore 1 /* charset1 */
         1: .line 360
            aload 2 /* charset2 */
            invokestatic sun.datatransfer.DataFlavorUtil$CharsetComparator.getEncoding:(Ljava/lang/String;)Ljava/lang/String;
            astore 2 /* charset2 */
         2: .line 362
            getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.charsets:Ljava/util/Map;
            aload 1 /* charset1 */
            aload 2 /* charset2 */
            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 /* comp */
        start local 3 // int comp
         3: .line 364
            iload 3 /* comp */
            ifne 5
         4: .line 365
            aload 2 /* charset2 */
            aload 1 /* charset1 */
            invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
            ireturn
         5: .line 368
      StackMap locals: int
      StackMap stack:
            iload 3 /* comp */
            ireturn
        end local 3 // int comp
        end local 2 // java.lang.String charset2
        end local 1 // java.lang.String charset1
        end local 0 // sun.datatransfer.DataFlavorUtil$CharsetComparator this
      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 // java.lang.String charset
         0: .line 388
            aload 0 /* charset */
            ifnonnull 2
         1: .line 389
            aconst_null
            areturn
         2: .line 390
      StackMap locals:
      StackMap stack:
            aload 0 /* charset */
            invokestatic sun.datatransfer.DataFlavorUtil.isEncodingSupported:(Ljava/lang/String;)Z
            ifne 4
         3: .line 391
            ldc "UNSUPPORTED"
            areturn
         4: .line 397
      StackMap locals:
      StackMap stack:
            aload 0 /* charset */
            invokestatic sun.datatransfer.DataFlavorUtil.canonicalName:(Ljava/lang/String;)Ljava/lang/String;
            astore 1 /* canonicalName */
        start local 1 // java.lang.String canonicalName
         5: .line 398
            getstatic sun.datatransfer.DataFlavorUtil$CharsetComparator.charsets:Ljava/util/Map;
            aload 1 /* canonicalName */
            invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
            ifeq 7
         6: .line 399
            aload 1 /* canonicalName */
            goto 8
         7: .line 400
      StackMap locals: java.lang.String
      StackMap stack:
            aload 0 /* charset */
         8: .line 398
      StackMap locals:
      StackMap stack: java.lang.String
            areturn
        end local 1 // java.lang.String canonicalName
        end local 0 // java.lang.String charset
      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: .line 1
            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