public final class org.jruby.runtime.encoding.EncodingService
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.runtime.encoding.EncodingService
super_class: java.lang.Object
{
private final org.jcodings.util.CaseInsensitiveBytesHash<org.jcodings.EncodingDB$Entry> encodings;
descriptor: Lorg/jcodings/util/CaseInsensitiveBytesHash;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/jcodings/util/CaseInsensitiveBytesHash<Lorg/jcodings/EncodingDB$Entry;>;
private final org.jcodings.util.CaseInsensitiveBytesHash<org.jcodings.EncodingDB$Entry> aliases;
descriptor: Lorg/jcodings/util/CaseInsensitiveBytesHash;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/jcodings/util/CaseInsensitiveBytesHash<Lorg/jcodings/EncodingDB$Entry;>;
private final org.jruby.runtime.builtin.IRubyObject[] encodingList;
descriptor: [Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.jruby.RubyEncoding[] encodingIndex;
descriptor: [Lorg/jruby/RubyEncoding;
flags: (0x0002) ACC_PRIVATE
private final org.jruby.Ruby runtime;
descriptor: Lorg/jruby/Ruby;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jcodings.Encoding ascii8bit;
descriptor: Lorg/jcodings/Encoding;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jcodings.Encoding javaDefault;
descriptor: Lorg/jcodings/Encoding;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final org.jruby.util.ByteList LOCALE_BL;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.jruby.util.ByteList EXTERNAL_BL;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.jruby.util.ByteList INTERNAL_BL;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.jruby.util.ByteList FILESYSTEM_BL;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern MS_CP_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static org.jruby.util.ByteList defaultCharsetName;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "locale"
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
putstatic org.jruby.runtime.encoding.EncodingService.LOCALE_BL:Lorg/jruby/util/ByteList;
1: ldc "external"
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
putstatic org.jruby.runtime.encoding.EncodingService.EXTERNAL_BL:Lorg/jruby/util/ByteList;
2: ldc "internal"
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
putstatic org.jruby.runtime.encoding.EncodingService.INTERNAL_BL:Lorg/jruby/util/ByteList;
3: ldc "filesystem"
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
putstatic org.jruby.runtime.encoding.EncodingService.FILESYSTEM_BL:Lorg/jruby/util/ByteList;
4: ldc "^MS([0-9]+)$"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.jruby.runtime.encoding.EncodingService.MS_CP_PATTERN:Ljava/util/regex/Pattern;
5: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_4
anewarray org.jruby.RubyEncoding
putfield org.jruby.runtime.encoding.EncodingService.encodingIndex:[Lorg/jruby/RubyEncoding;
2: aload 0
aload 1
putfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
3: aload 0
invokestatic org.jcodings.EncodingDB.getEncodings:()Lorg/jcodings/util/CaseInsensitiveBytesHash;
putfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
4: aload 0
invokestatic org.jcodings.EncodingDB.getAliases:()Lorg/jcodings/util/CaseInsensitiveBytesHash;
putfield org.jruby.runtime.encoding.EncodingService.aliases:Lorg/jcodings/util/CaseInsensitiveBytesHash;
5: aload 0
aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
ldc "ASCII-8BIT"
invokevirtual java.lang.String.getBytes:()[B
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.get:([B)Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
putfield org.jruby.runtime.encoding.EncodingService.ascii8bit:Lorg/jcodings/Encoding;
6: invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
astore 2
start local 2 7: aload 0
aload 2
invokevirtual java.lang.String.getBytes:()[B
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingOrAliasEntry:([B)Lorg/jcodings/EncodingDB$Entry;
astore 3
start local 3 8: aload 0
aload 3
ifnonnull 9
aload 0
getfield org.jruby.runtime.encoding.EncodingService.ascii8bit:Lorg/jcodings/Encoding;
goto 10
StackMap locals: org.jruby.runtime.encoding.EncodingService org.jruby.Ruby java.lang.String org.jcodings.EncodingDB$Entry
StackMap stack: org.jruby.runtime.encoding.EncodingService
9: aload 3
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
StackMap locals: org.jruby.runtime.encoding.EncodingService org.jruby.Ruby java.lang.String org.jcodings.EncodingDB$Entry
StackMap stack: org.jruby.runtime.encoding.EncodingService org.jcodings.Encoding
10: putfield org.jruby.runtime.encoding.EncodingService.javaDefault:Lorg/jcodings/Encoding;
11: aload 0
aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.size:()I
anewarray org.jruby.runtime.builtin.IRubyObject
putfield org.jruby.runtime.encoding.EncodingService.encodingList:[Lorg/jruby/runtime/builtin/IRubyObject;
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 13 1 runtime Lorg/jruby/Ruby;
7 13 2 javaDefaultCharset Ljava/lang/String;
8 13 3 javaDefaultEntry Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
runtime
public org.jcodings.Encoding getConsoleEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifne 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 2: invokestatic java.lang.System.console:()Ljava/io/Console;
astore 2
start local 2 3: aload 2
ifnull 10
4: ldc Ljava/io/Console;
ldc "cs"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 3
start local 3 5: aload 3
invokestatic org.jruby.javasupport.Java.trySetAccessible:(Ljava/lang/reflect/AccessibleObject;)Z
pop
6: aload 3
aload 2
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.charset.Charset
astore 4
start local 4 7: aload 0
aload 4
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
invokevirtual org.jruby.runtime.encoding.EncodingService.loadEncoding:(Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
astore 1
end local 4 end local 3 end local 2 8: goto 10
StackMap locals: org.jruby.runtime.encoding.EncodingService org.jcodings.Encoding
StackMap stack: java.lang.Throwable
9: pop
10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/runtime/encoding/EncodingService;
2 11 1 consoleEncoding Lorg/jcodings/Encoding;
3 8 2 console Ljava/io/Console;
5 8 3 fcs Ljava/lang/reflect/Field;
7 8 4 cs Ljava/nio/charset/Charset;
Exception table:
from to target type
2 8 9 Class java.lang.Throwable
public org.jcodings.Encoding getUSAsciiEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.jcodings.specific.USASCIIEncoding.INSTANCE:Lorg/jcodings/specific/USASCIIEncoding;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
public org.jcodings.Encoding getAscii8bitEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.ascii8bit:Lorg/jcodings/Encoding;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
public org.jcodings.Encoding getFileSystemEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.jruby.runtime.encoding.EncodingService$SpecialEncoding.FILESYSTEM:Lorg/jruby/runtime/encoding/EncodingService$SpecialEncoding;
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.runtime.encoding.EncodingService$SpecialEncoding.toEncoding:(Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
public org.jcodings.util.CaseInsensitiveBytesHash<org.jcodings.EncodingDB$Entry> getEncodings();
descriptor: ()Lorg/jcodings/util/CaseInsensitiveBytesHash;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
Signature: ()Lorg/jcodings/util/CaseInsensitiveBytesHash<Lorg/jcodings/EncodingDB$Entry;>;
public org.jcodings.util.CaseInsensitiveBytesHash<org.jcodings.EncodingDB$Entry> getAliases();
descriptor: ()Lorg/jcodings/util/CaseInsensitiveBytesHash;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.aliases:Lorg/jcodings/util/CaseInsensitiveBytesHash;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
Signature: ()Lorg/jcodings/util/CaseInsensitiveBytesHash<Lorg/jcodings/EncodingDB$Entry;>;
public org.jcodings.EncodingDB$Entry findEncodingEntry(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
aload 1
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 1
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 1
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 1
invokevirtual org.jruby.util.ByteList.getRealSize:()I
iadd
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.get:([BII)Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 bytes Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
bytes
public org.jcodings.EncodingDB$Entry findEncodingEntry(byte[]);
descriptor: ([B)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
aload 1
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.get:([B)Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 bytes [B
MethodParameters:
Name Flags
bytes
public org.jcodings.EncodingDB$Entry findAliasEntry(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.aliases:Lorg/jcodings/util/CaseInsensitiveBytesHash;
aload 1
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 1
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 1
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 1
invokevirtual org.jruby.util.ByteList.getRealSize:()I
iadd
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.get:([BII)Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 bytes Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
bytes
public org.jcodings.EncodingDB$Entry findAliasEntry(byte[]);
descriptor: ([B)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.aliases:Lorg/jcodings/util/CaseInsensitiveBytesHash;
aload 1
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.get:([B)Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 bytes [B
MethodParameters:
Name Flags
bytes
public org.jcodings.EncodingDB$Entry findEncodingOrAliasEntry(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingEntry:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
goto 3
StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
2: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findAliasEntry:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
StackMap locals:
StackMap stack: org.jcodings.EncodingDB$Entry
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 4 1 bytes Lorg/jruby/util/ByteList;
1 4 2 e Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
bytes
public org.jcodings.EncodingDB$Entry findEncodingOrAliasEntry(byte[]);
descriptor: ([B)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingEntry:([B)Lorg/jcodings/EncodingDB$Entry;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
goto 3
StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
2: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findAliasEntry:([B)Lorg/jcodings/EncodingDB$Entry;
StackMap locals:
StackMap stack: org.jcodings.EncodingDB$Entry
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 4 1 bytes [B
1 4 2 e Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
bytes
public org.jcodings.Encoding getLocaleEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.runtime.encoding.EncodingService.getConsoleEncoding:()Lorg/jcodings/Encoding;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
areturn
3: StackMap locals: org.jcodings.Encoding
StackMap stack:
getstatic org.jruby.runtime.encoding.EncodingService.defaultCharsetName:Lorg/jruby/util/ByteList;
astore 2
start local 2 4: aload 2
ifnonnull 7
5: new org.jruby.util.ByteList
dup
invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BZ)V
astore 2
6: aload 2
putstatic org.jruby.runtime.encoding.EncodingService.defaultCharsetName:Lorg/jruby/util/ByteList;
7: StackMap locals: org.jruby.util.ByteList
StackMap stack:
aload 0
aload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingOrAliasEntry:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
astore 3
start local 3 8: aload 3
ifnonnull 9
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
goto 10
StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
9: aload 3
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
StackMap locals:
StackMap stack: org.jcodings.Encoding
10: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/runtime/encoding/EncodingService;
1 11 1 consoleEncoding Lorg/jcodings/Encoding;
4 11 2 encName Lorg/jruby/util/ByteList;
8 11 3 entry Lorg/jcodings/EncodingDB$Entry;
public org.jruby.runtime.builtin.IRubyObject[] getEncodingList();
descriptor: ()[Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodingList:[Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
public org.jcodings.Encoding loadEncoding(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingOrAliasEntry:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
astore 2
start local 2 1: aload 2
ifnonnull 2
aconst_null
areturn
2: StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
aload 0
aload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.loadEncodingEntry:(Lorg/jcodings/EncodingDB$Entry;)Lorg/jruby/RubyEncoding;
pop
3: aload 2
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 4 1 name Lorg/jruby/util/ByteList;
1 4 2 entry Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
name
private org.jruby.RubyEncoding loadEncodingEntry(org.jcodings.EncodingDB$Entry);
descriptor: (Lorg/jcodings/EncodingDB$Entry;)Lorg/jruby/RubyEncoding;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
astore 2
start local 2 1: aload 2
invokevirtual org.jcodings.Encoding.getIndex:()I
istore 3
start local 3 2: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodingIndex:[Lorg/jruby/RubyEncoding;
astore 4
start local 4 3: iload 3
aload 4
arraylength
if_icmplt 5
4: aload 0
aload 4
iload 3
iconst_4
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast org.jruby.RubyEncoding[]
dup_x1
putfield org.jruby.runtime.encoding.EncodingService.encodingIndex:[Lorg/jruby/RubyEncoding;
astore 4
5: StackMap locals: org.jcodings.Encoding int org.jruby.RubyEncoding[]
StackMap stack:
aload 4
iload 3
aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodingList:[Lorg/jruby/runtime/builtin/IRubyObject;
aload 1
invokevirtual org.jcodings.EncodingDB$Entry.getIndex:()I
aaload
checkcast org.jruby.RubyEncoding
dup_x2
aastore
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 6 1 entry Lorg/jcodings/EncodingDB$Entry;
1 6 2 enc Lorg/jcodings/Encoding;
2 6 3 index I
3 6 4 encodingIndex [Lorg/jruby/RubyEncoding;
MethodParameters:
Name Flags
entry final
public org.jruby.RubyEncoding getEncoding(org.jcodings.Encoding);
descriptor: (Lorg/jcodings/Encoding;)Lorg/jruby/RubyEncoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jcodings.Encoding.getIndex:()I
istore 2
start local 2 1: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodingIndex:[Lorg/jruby/RubyEncoding;
astore 4
start local 4 2: iload 2
aload 4
arraylength
if_icmpge 5
aload 4
iload 2
aaload
dup
astore 3
start local 3 3: ifnull 5
4: aload 3
areturn
end local 3 5: StackMap locals: org.jruby.runtime.encoding.EncodingService org.jcodings.Encoding int top org.jruby.RubyEncoding[]
StackMap stack:
aload 0
aload 1
invokevirtual org.jcodings.Encoding.getName:()[B
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingOrAliasEntry:([B)Lorg/jcodings/EncodingDB$Entry;
astore 5
start local 5 6: aload 0
aload 5
invokevirtual org.jruby.runtime.encoding.EncodingService.loadEncodingEntry:(Lorg/jcodings/EncodingDB$Entry;)Lorg/jruby/RubyEncoding;
areturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 7 1 enc Lorg/jcodings/Encoding;
1 7 2 index I
3 5 3 rubyEncoding Lorg/jruby/RubyEncoding;
2 7 4 encodingIndex [Lorg/jruby/RubyEncoding;
6 7 5 entry Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
enc
public void defineEncodings();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.entryIterator:()Lorg/jcodings/util/CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntryIterator;
astore 1
start local 1 1: goto 11
2: StackMap locals: org.jcodings.util.Hash$HashEntryIterator
StackMap stack:
aload 1
invokevirtual org.jcodings.util.Hash$HashEntryIterator.next:()Lorg/jcodings/util/Hash$HashEntry;
checkcast org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry
3: astore 2
start local 2 4: aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.value:Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
astore 3
start local 3 5: aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.bytes:[B
aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.p:I
aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.end:I
aload 3
invokevirtual org.jcodings.EncodingDB$Entry.isDummy:()Z
invokestatic org.jruby.RubyEncoding.newEncoding:(Lorg/jruby/Ruby;[BIIZ)Lorg/jruby/RubyEncoding;
astore 4
start local 4 6: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodingList:[Lorg/jruby/runtime/builtin/IRubyObject;
aload 3
invokevirtual org.jcodings.EncodingDB$Entry.getIndex:()I
aload 4
aastore
7: aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.bytes:[B
aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.p:I
aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.end:I
invokestatic org.jruby.util.io.EncodingUtils.encodingNames:([BII)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 10
StackMap locals: org.jruby.runtime.encoding.EncodingService org.jcodings.util.Hash$HashEntryIterator org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry org.jcodings.EncodingDB$Entry org.jruby.RubyEncoding top java.util.Iterator
StackMap stack:
8: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 9: aload 0
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodingList:[Lorg/jruby/runtime/builtin/IRubyObject;
aload 3
invokevirtual org.jcodings.EncodingDB$Entry.getIndex:()I
aaload
checkcast org.jruby.RubyEncoding
aload 5
invokevirtual org.jruby.runtime.encoding.EncodingService.defineEncodingConstant:(Lorg/jruby/Ruby;Lorg/jruby/RubyEncoding;Ljava/lang/String;)V
end local 5 10: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
end local 4 end local 3 end local 2 11: StackMap locals: org.jruby.runtime.encoding.EncodingService org.jcodings.util.Hash$HashEntryIterator
StackMap stack:
aload 1
invokevirtual org.jcodings.util.Hash$HashEntryIterator.hasNext:()Z
ifne 2
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/runtime/encoding/EncodingService;
1 13 1 hei Lorg/jcodings/util/Hash$HashEntryIterator;
4 11 2 e Lorg/jcodings/util/CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry<Lorg/jcodings/EncodingDB$Entry;>;
5 11 3 ee Lorg/jcodings/EncodingDB$Entry;
6 11 4 encoding Lorg/jruby/RubyEncoding;
9 10 5 constName Ljava/lang/String;
public void defineAliases();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.aliases:Lorg/jcodings/util/CaseInsensitiveBytesHash;
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.entryIterator:()Lorg/jcodings/util/CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntryIterator;
astore 1
start local 1 1: goto 9
2: StackMap locals: org.jcodings.util.Hash$HashEntryIterator
StackMap stack:
aload 1
invokevirtual org.jcodings.util.Hash$HashEntryIterator.next:()Lorg/jcodings/util/Hash$HashEntry;
checkcast org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry
3: astore 2
start local 2 4: aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.value:Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
astore 3
start local 3 5: aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.bytes:[B
aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.p:I
aload 2
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.end:I
invokestatic org.jruby.util.io.EncodingUtils.encodingNames:([BII)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: org.jruby.runtime.encoding.EncodingService org.jcodings.util.Hash$HashEntryIterator org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry org.jcodings.EncodingDB$Entry top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 7: aload 0
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodingList:[Lorg/jruby/runtime/builtin/IRubyObject;
aload 3
invokevirtual org.jcodings.EncodingDB$Entry.getIndex:()I
aaload
checkcast org.jruby.RubyEncoding
aload 4
invokevirtual org.jruby.runtime.encoding.EncodingService.defineEncodingConstant:(Lorg/jruby/Ruby;Lorg/jruby/RubyEncoding;Ljava/lang/String;)V
end local 4 8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 3 end local 2 9: StackMap locals: org.jruby.runtime.encoding.EncodingService org.jcodings.util.Hash$HashEntryIterator
StackMap stack:
aload 1
invokevirtual org.jcodings.util.Hash$HashEntryIterator.hasNext:()Z
ifne 2
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/runtime/encoding/EncodingService;
1 11 1 i Lorg/jcodings/util/Hash$HashEntryIterator;
4 9 2 e Lorg/jcodings/util/CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry<Lorg/jcodings/EncodingDB$Entry;>;
5 9 3 entry Lorg/jcodings/EncodingDB$Entry;
7 8 4 constName Ljava/lang/String;
private void defineEncodingConstant(org.jruby.Ruby, org.jruby.RubyEncoding, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyEncoding;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual org.jruby.Ruby.getEncoding:()Lorg/jruby/RubyClass;
aload 3
aload 2
invokevirtual org.jruby.RubyClass.defineConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 encoding Lorg/jruby/RubyEncoding;
0 2 3 constName Ljava/lang/String;
MethodParameters:
Name Flags
runtime
encoding
constName
public org.jruby.runtime.builtin.IRubyObject getDefaultExternal();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDefaultExternalEncoding:()Lorg/jcodings/Encoding;
astore 1
start local 1 1: aload 1
ifnonnull 5
2: ldc "US-ASCII"
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
astore 2
start local 2 3: aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.loadEncoding:(Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
astore 1
4: aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
aload 1
invokevirtual org.jruby.Ruby.setDefaultExternalEncoding:(Lorg/jcodings/Encoding;)V
end local 2 5: StackMap locals: org.jcodings.Encoding
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncoding:(Lorg/jcodings/Encoding;)Lorg/jruby/RubyEncoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/encoding/EncodingService;
1 6 1 defaultEncoding Lorg/jcodings/Encoding;
3 5 2 encodingName Lorg/jruby/util/ByteList;
public org.jruby.runtime.builtin.IRubyObject getDefaultInternal();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDefaultInternalEncoding:()Lorg/jcodings/Encoding;
invokevirtual org.jruby.runtime.encoding.EncodingService.convertEncodingToRubyEncoding:(Lorg/jcodings/Encoding;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
public org.jruby.runtime.builtin.IRubyObject convertEncodingToRubyEncoding(org.jcodings.Encoding);
descriptor: (Lorg/jcodings/Encoding;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncoding:(Lorg/jcodings/Encoding;)Lorg/jruby/RubyEncoding;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 3 1 defaultEncoding Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
defaultEncoding
public org.jruby.runtime.builtin.IRubyObject findEncodingObject(byte[]);
descriptor: ([B)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingEntry:([B)Lorg/jcodings/EncodingDB$Entry;
astore 2
start local 2 1: aload 2
ifnull 4
2: aload 2
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
astore 3
start local 3 3: goto 5
end local 3 4: StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
astore 3
start local 3 5: StackMap locals: org.jcodings.Encoding
StackMap stack:
aload 0
aload 3
invokevirtual org.jruby.runtime.encoding.EncodingService.convertEncodingToRubyEncoding:(Lorg/jcodings/Encoding;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 6 1 bytes [B
1 6 2 entry Lorg/jcodings/EncodingDB$Entry;
3 4 3 enc Lorg/jcodings/Encoding;
5 6 3 enc Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
bytes
public org.jcodings.Encoding getJavaDefault();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.javaDefault:Lorg/jcodings/Encoding;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
public org.jcodings.Encoding getEncodingFromObject(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromObjectCommon:(Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jcodings/Encoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
arg
public org.jcodings.Encoding getEncodingFromObjectNoError(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromObjectCommon:(Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jcodings/Encoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
arg
private org.jcodings.Encoding getEncodingFromObjectCommon(org.jruby.runtime.builtin.IRubyObject, boolean);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jcodings/Encoding;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 1
instanceof org.jruby.RubyEncoding
ifeq 3
2: aload 1
checkcast org.jruby.RubyEncoding
invokevirtual org.jruby.RubyEncoding.getEncoding:()Lorg/jcodings/Encoding;
areturn
3: StackMap locals:
StackMap stack:
aload 1
instanceof org.jruby.RubyFixnum
ifeq 7
4: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
istore 3
start local 3 5: getstatic org.jruby.ext.nkf.RubyNKF.NKFCharsetMap:Ljava/util/Map;
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: aload 4
ifnull 7
aload 0
aload 4
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromNKFName:(Ljava/lang/String;)Lorg/jcodings/Encoding;
areturn
end local 4 end local 3 7: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.checkStringType:()Lorg/jruby/runtime/builtin/IRubyObject;
dup
astore 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 9
8: aconst_null
areturn
9: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
invokevirtual org.jcodings.Encoding.isAsciiCompatible:()Z
ifne 11
10: aconst_null
areturn
11: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
iload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingCommon:(Lorg/jruby/util/ByteList;Z)Lorg/jcodings/Encoding;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 12 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 12 2 error Z
5 7 3 id I
6 7 4 name Ljava/lang/String;
MethodParameters:
Name Flags
arg
error
private org.jcodings.Encoding getEncodingFromNKFName(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jcodings/Encoding;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.encoding.EncodingService.encodings:Lorg/jcodings/util/CaseInsensitiveBytesHash;
invokevirtual org.jcodings.util.CaseInsensitiveBytesHash.entryIterator:()Lorg/jcodings/util/CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntryIterator;
astore 2
start local 2 1: goto 8
2: StackMap locals: org.jcodings.util.Hash$HashEntryIterator
StackMap stack:
aload 2
invokevirtual org.jcodings.util.Hash$HashEntryIterator.next:()Lorg/jcodings/util/Hash$HashEntry;
checkcast org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry
3: astore 3
start local 3 4: aload 3
getfield org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry.value:Ljava/lang/Object;
checkcast org.jcodings.EncodingDB$Entry
astore 4
start local 4 5: aload 4
invokevirtual org.jcodings.EncodingDB$Entry.getEncodingClass:()Ljava/lang/String;
astore 5
start local 5 6: aload 5
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 4
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
areturn
end local 5 end local 4 end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jcodings.util.Hash$HashEntryIterator.hasNext:()Z
ifne 2
9: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 10 1 name Ljava/lang/String;
1 10 2 hei Lorg/jcodings/util/Hash$HashEntryIterator;
4 8 3 e Lorg/jcodings/util/CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry<Lorg/jcodings/EncodingDB$Entry;>;
5 8 4 entry Lorg/jcodings/EncodingDB$Entry;
6 8 5 className Ljava/lang/String;
MethodParameters:
Name Flags
name final
public org.jcodings.Encoding getEncodingFromString(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
new org.jruby.util.ByteList
dup
aload 1
invokestatic org.jruby.util.ByteList.plain:(Ljava/lang/CharSequence;)[B
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BZ)V
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.checkAsciiEncodingName:(Lorg/jruby/util/ByteList;)V
3: aload 2
invokestatic org.jruby.runtime.encoding.EncodingService$SpecialEncoding.valueOf:(Lorg/jruby/util/ByteList;)Lorg/jruby/runtime/encoding/EncodingService$SpecialEncoding;
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 3
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.runtime.encoding.EncodingService$SpecialEncoding.toEncoding:(Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
areturn
6: StackMap locals: org.jruby.util.ByteList org.jruby.runtime.encoding.EncodingService$SpecialEncoding
StackMap stack:
aload 0
aload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingWithError:(Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 7 1 string Ljava/lang/String;
2 7 2 name Lorg/jruby/util/ByteList;
4 7 3 special Lorg/jruby/runtime/encoding/EncodingService$SpecialEncoding;
MethodParameters:
Name Flags
string
public org.jcodings.Encoding findEncoding(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingCommon:(Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jcodings/Encoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 str Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
str
public org.jcodings.Encoding findEncodingNoError(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingCommon:(Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jcodings/Encoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 str Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
str
public org.jcodings.Encoding findEncodingNoError(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingCommon:(Lorg/jruby/util/ByteList;Z)Lorg/jcodings/Encoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 str Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
str
private org.jcodings.Encoding findEncodingCommon(org.jruby.runtime.builtin.IRubyObject, boolean);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jcodings/Encoding;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 3
start local 3 1: aload 0
aload 3
iload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingCommon:(Lorg/jruby/util/ByteList;Z)Lorg/jcodings/Encoding;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 2 1 str Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 error Z
1 2 3 name Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
str
error
private org.jcodings.Encoding findEncodingCommon(org.jruby.util.ByteList, boolean);
descriptor: (Lorg/jruby/util/ByteList;Z)Lorg/jcodings/Encoding;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.checkAsciiEncodingName:(Lorg/jruby/util/ByteList;)V
1: aload 1
invokestatic org.jruby.runtime.encoding.EncodingService$SpecialEncoding.valueOf:(Lorg/jruby/util/ByteList;)Lorg/jruby/runtime/encoding/EncodingService$SpecialEncoding;
astore 3
start local 3 2: aload 3
ifnull 6
3: aload 3
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.runtime.encoding.EncodingService$SpecialEncoding.toEncoding:(Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
astore 4
start local 4 4: aload 4
ifnonnull 5
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
astore 4
5: StackMap locals: org.jruby.runtime.encoding.EncodingService$SpecialEncoding org.jcodings.Encoding
StackMap stack:
aload 4
areturn
end local 4 6: StackMap locals:
StackMap stack:
iload 2
ifeq 7
aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingWithError:(Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
areturn
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingOrAliasEntry:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
astore 4
start local 4 8: aload 4
ifnonnull 9
aconst_null
areturn
9: StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
aload 4
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 10 1 name Lorg/jruby/util/ByteList;
0 10 2 error Z
2 10 3 special Lorg/jruby/runtime/encoding/EncodingService$SpecialEncoding;
4 6 4 specialEncoding Lorg/jcodings/Encoding;
8 10 4 e Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
name
error
public org.jcodings.EncodingDB$Entry findEntry(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.checkAsciiEncodingName:(Lorg/jruby/util/ByteList;)V
2: aload 2
invokestatic org.jruby.runtime.encoding.EncodingService$SpecialEncoding.valueOf:(Lorg/jruby/util/ByteList;)Lorg/jruby/runtime/encoding/EncodingService$SpecialEncoding;
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 0
aload 3
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.runtime.encoding.EncodingService$SpecialEncoding.toEncoding:(Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
invokevirtual org.jruby.runtime.encoding.EncodingService.findEntryFromEncoding:(Lorg/jcodings/Encoding;)Lorg/jcodings/EncodingDB$Entry;
areturn
5: StackMap locals: org.jruby.util.ByteList org.jruby.runtime.encoding.EncodingService$SpecialEncoding
StackMap stack:
aload 0
aload 2
invokevirtual org.jruby.runtime.encoding.EncodingService.findEntryWithError:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 6 1 str Lorg/jruby/runtime/builtin/IRubyObject;
1 6 2 name Lorg/jruby/util/ByteList;
3 6 3 special Lorg/jruby/runtime/encoding/EncodingService$SpecialEncoding;
MethodParameters:
Name Flags
str
public org.jruby.runtime.builtin.IRubyObject rubyEncodingFromObject(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubyEncoding
ifeq 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEntry:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/EncodingDB$Entry;
astore 2
start local 2 3: aload 2
ifnonnull 4
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
aload 0
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingList:()[Lorg/jruby/runtime/builtin/IRubyObject;
aload 2
invokevirtual org.jcodings.EncodingDB$Entry.getIndex:()I
aaload
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 5 1 str Lorg/jruby/runtime/builtin/IRubyObject;
3 5 2 entry Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
str
public java.nio.charset.Charset charsetForEncoding(org.jcodings.Encoding);
descriptor: (Lorg/jcodings/Encoding;)Ljava/nio/charset/Charset;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
if_acmpne 2
1: getstatic org.jruby.RubyEncoding.ISO:Ljava/nio/charset/Charset;
areturn
2: StackMap locals:
StackMap stack:
aload 1
getstatic org.jcodings.specific.ISO8859_16Encoding.INSTANCE:Lorg/jcodings/specific/ISO8859_16Encoding;
if_acmpne 4
3: getstatic org.jcodings.spi.ISO_8859_16.INSTANCE:Lorg/jcodings/spi/ISO_8859_16;
areturn
4: StackMap locals:
StackMap stack:
aload 1
invokestatic org.jruby.util.io.EncodingUtils.charsetForEncoding:(Lorg/jcodings/Encoding;)Ljava/nio/charset/Charset;
5: areturn
6: StackMap locals:
StackMap stack: java.nio.charset.UnsupportedCharsetException
pop
7: aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "no java.nio.charset.Charset found for encoding `"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.jcodings.Encoding.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newEncodingCompatibilityError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 8 1 encoding Lorg/jcodings/Encoding;
Exception table:
from to target type
4 5 6 Class java.nio.charset.UnsupportedCharsetException
MethodParameters:
Name Flags
encoding
private void checkAsciiEncodingName(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jruby.util.ByteList.getEncoding:()Lorg/jcodings/Encoding;
invokevirtual org.jcodings.Encoding.isAsciiCompatible:()Z
ifne 2
1: aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
ldc "invalid name encoding (non ASCII)"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 3 1 name Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
name
public org.jcodings.Encoding getWindowsFilesystemEncoding(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: ldc "file.encoding"
ldc "UTF-8"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
invokevirtual org.jruby.runtime.encoding.EncodingService.loadEncoding:(Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
astore 3
start local 3 2: aload 3
ifnonnull 7
3: getstatic org.jruby.runtime.encoding.EncodingService.MS_CP_PATTERN:Ljava/util/regex/Pattern;
aload 2
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 4
start local 4 4: aload 4
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 7
5: new java.lang.StringBuilder
dup
ldc "CP"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 6: aload 0
aload 5
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
invokevirtual org.jruby.runtime.encoding.EncodingService.loadEncoding:(Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
astore 3
end local 5 end local 4 7: StackMap locals: java.lang.String org.jcodings.Encoding
StackMap stack:
aload 3
ifnonnull 10
8: aload 1
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
new java.lang.StringBuilder
dup
ldc "unrecognized system encoding \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\", using default external"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.common.RubyWarnings.warn:(Ljava/lang/String;)V
9: aload 1
invokevirtual org.jruby.Ruby.getDefaultExternalEncoding:()Lorg/jcodings/Encoding;
astore 3
10: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 11 1 ruby Lorg/jruby/Ruby;
1 11 2 encoding Ljava/lang/String;
2 11 3 filesystemEncoding Lorg/jcodings/Encoding;
4 7 4 match Ljava/util/regex/Matcher;
6 7 5 cpEncoding Ljava/lang/String;
MethodParameters:
Name Flags
ruby
public org.jcodings.Encoding findEncodingWithError(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEntryWithError:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
invokevirtual org.jcodings.EncodingDB$Entry.getEncoding:()Lorg/jcodings/Encoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 name Lorg/jruby/util/ByteList;
MethodParameters:
Name Flags
name
private org.jcodings.EncodingDB$Entry findEntryWithError(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingOrAliasEntry:(Lorg/jruby/util/ByteList;)Lorg/jcodings/EncodingDB$Entry;
astore 2
start local 2 1: aload 2
ifnonnull 2
aload 0
getfield org.jruby.runtime.encoding.EncodingService.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "unknown encoding name - "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals: org.jcodings.EncodingDB$Entry
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 3 1 name Lorg/jruby/util/ByteList;
1 3 2 e Lorg/jcodings/EncodingDB$Entry;
MethodParameters:
Name Flags
name
private org.jcodings.EncodingDB$Entry findEntryFromEncoding(org.jcodings.Encoding);
descriptor: (Lorg/jcodings/Encoding;)Lorg/jcodings/EncodingDB$Entry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jcodings.Encoding.getName:()[B
invokevirtual org.jruby.runtime.encoding.EncodingService.findEncodingEntry:([B)Lorg/jcodings/EncodingDB$Entry;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 2 1 e Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
e
public org.jcodings.Encoding getFileSystemEncoding(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.runtime.encoding.EncodingService.getFileSystemEncoding:()Lorg/jcodings/Encoding;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/encoding/EncodingService;
0 1 1 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
runtime
}
SourceFile: "EncodingService.java"
NestMembers:
org.jruby.runtime.encoding.EncodingService$SpecialEncoding
InnerClasses:
public final Entry = org.jcodings.EncodingDB$Entry of org.jcodings.EncodingDB
public final CaseInsensitiveBytesHashEntry = org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntry of org.jcodings.util.CaseInsensitiveBytesHash
public CaseInsensitiveBytesHashEntryIterator = org.jcodings.util.CaseInsensitiveBytesHash$CaseInsensitiveBytesHashEntryIterator of org.jcodings.util.CaseInsensitiveBytesHash
public HashEntry = org.jcodings.util.Hash$HashEntry of org.jcodings.util.Hash
public HashEntryIterator = org.jcodings.util.Hash$HashEntryIterator of org.jcodings.util.Hash
private final SpecialEncoding = org.jruby.runtime.encoding.EncodingService$SpecialEncoding of org.jruby.runtime.encoding.EncodingService