public class org.jruby.embed.io.ReaderInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.io.ReaderInputStream
super_class: java.io.InputStream
{
private static final int DEFAULT_CHAR_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private static final int DEFAULT_BYTE_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private final java.io.Reader reader;
descriptor: Ljava/io/Reader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] bytes;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int totalBytes;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int position;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int markedIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int readlimit;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean isOpen;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.nio.charset.CharsetEncoder encoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.io.Reader);
descriptor: (Ljava/io/Reader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial org.jruby.embed.io.ReaderInputStream.<init>:(Ljava/io/Reader;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 2 1 reader Ljava/io/Reader;
MethodParameters:
Name Flags
reader
public void <init>(java.io.Reader, java.lang.String);
descriptor: (Ljava/io/Reader;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
aconst_null
putfield org.jruby.embed.io.ReaderInputStream.bytes:[B
2: aload 0
iconst_0
putfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
3: aload 0
iconst_0
putfield org.jruby.embed.io.ReaderInputStream.position:I
4: aload 0
iconst_m1
putfield org.jruby.embed.io.ReaderInputStream.markedIndex:I
5: aload 0
iconst_0
putfield org.jruby.embed.io.ReaderInputStream.readlimit:I
6: aload 0
iconst_1
putfield org.jruby.embed.io.ReaderInputStream.isOpen:Z
7: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
8: aload 0
aload 1
putfield org.jruby.embed.io.ReaderInputStream.reader:Ljava/io/Reader;
9: aload 2
ifnonnull 15
10: aload 1
instanceof java.io.InputStreamReader
ifeq 13
11: aload 1
checkcast java.io.InputStreamReader
invokevirtual java.io.InputStreamReader.getEncoding:()Ljava/lang/String;
astore 2
12: goto 17
13: StackMap locals: org.jruby.embed.io.ReaderInputStream java.io.Reader java.lang.String
StackMap stack:
invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
astore 2
14: goto 17
StackMap locals:
StackMap stack:
15: aload 2
invokestatic java.nio.charset.Charset.isSupported:(Ljava/lang/String;)Z
ifne 17
16: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " is not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
aload 2
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield org.jruby.embed.io.ReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
18: aload 0
getfield org.jruby.embed.io.ReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
19: aload 0
getfield org.jruby.embed.io.ReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
20: aload 0
aload 1
invokevirtual org.jruby.embed.io.ReaderInputStream.fillByteBuffer:(Ljava/io/Reader;)V
21: goto 24
StackMap locals:
StackMap stack: java.io.IOException
22: astore 3
start local 3 23: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 24: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 25 1 reader Ljava/io/Reader;
0 25 2 encoding Ljava/lang/String;
23 24 3 ex Ljava/io/IOException;
Exception table:
from to target type
20 21 22 Class java.io.IOException
MethodParameters:
Name Flags
reader
encoding
private void fillByteBuffer(java.io.Reader);
descriptor: (Ljava/io/Reader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: sipush 8192
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 2
start local 2 1: sipush 8192
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 3
start local 3 2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 3: StackMap locals: java.nio.CharBuffer java.nio.ByteBuffer java.util.List
StackMap stack:
aload 2
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
4: aload 1
aload 2
invokevirtual java.io.Reader.read:(Ljava/nio/CharBuffer;)I
istore 5
start local 5 5: iload 5
ifgt 7
6: goto 24
7: StackMap locals: int
StackMap stack:
aload 2
aload 2
invokevirtual java.nio.CharBuffer.position:()I
invokestatic com.headius.backport9.buffer.Buffers.limitBuffer:(Ljava/nio/Buffer;I)Ljava/nio/Buffer;
pop
8: aload 2
invokevirtual java.nio.CharBuffer.rewind:()Ljava/nio/Buffer;
pop
9: iconst_0
istore 6
start local 6 10: goto 22
11: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
aload 2
aload 3
iload 6
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 7
start local 7 12: aload 7
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifeq 15
13: aload 7
invokevirtual java.nio.charset.CoderResult.throwException:()V
14: goto 22
StackMap locals: java.nio.charset.CoderResult
StackMap stack:
15: aload 7
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 19
16: aload 0
aload 4
aload 3
invokevirtual org.jruby.embed.io.ReaderInputStream.appendBytes:(Ljava/util/List;Ljava/nio/ByteBuffer;)V
17: iconst_1
istore 6
18: goto 22
StackMap locals:
StackMap stack:
19: aload 7
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 22
20: aload 0
aload 4
aload 3
invokevirtual org.jruby.embed.io.ReaderInputStream.appendBytes:(Ljava/util/List;Ljava/nio/ByteBuffer;)V
21: aload 3
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
end local 7 22: StackMap locals:
StackMap stack:
iload 6
ifeq 11
end local 6 end local 5 23: goto 3
24: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual org.jruby.embed.io.ReaderInputStream.getByteArray:(Ljava/util/List;)V
25: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 26 1 reader Ljava/io/Reader;
1 26 2 cbuf Ljava/nio/CharBuffer;
2 26 3 bbuf Ljava/nio/ByteBuffer;
3 26 4 list Ljava/util/List<[B>;
5 23 5 size I
10 23 6 eof Z
12 22 7 cr Ljava/nio/charset/CoderResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
private void appendBytes(java.util.List<byte[]>, java.nio.ByteBuffer);
descriptor: (Ljava/util/List;Ljava/nio/ByteBuffer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic com.headius.backport9.buffer.Buffers.flipBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
1: aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
istore 3
start local 3 2: aload 0
dup
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
iload 3
iadd
putfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
3: iload 3
newarray 8
astore 4
start local 4 4: aload 2
invokevirtual java.nio.ByteBuffer.array:()[B
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 1
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 7 1 list Ljava/util/List<[B>;
0 7 2 bb Ljava/nio/ByteBuffer;
2 7 3 length I
4 7 4 dst [B
Signature: (Ljava/util/List<[B>;Ljava/nio/ByteBuffer;)V
MethodParameters:
Name Flags
list
bb
private void getByteArray(java.util.List<byte[]>);
descriptor: (Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
newarray 8
putfield org.jruby.embed.io.ReaderInputStream.bytes:[B
1: iconst_0
istore 2
start local 2 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals: org.jruby.embed.io.ReaderInputStream java.util.List int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 3
start local 3 4: iconst_0
istore 5
start local 5 5: goto 8
6: StackMap locals: org.jruby.embed.io.ReaderInputStream java.util.List int byte[] java.util.Iterator int
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.bytes:[B
iload 2
iinc 2 1
aload 3
iload 5
baload
bastore
7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
aload 3
arraylength
if_icmplt 6
end local 5 end local 3 9: StackMap locals: org.jruby.embed.io.ReaderInputStream java.util.List int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 11 1 list Ljava/util/List<[B>;
2 11 2 index I
4 9 3 bb [B
5 9 5 i I
Signature: (Ljava/util/List<[B>;)V
MethodParameters:
Name Flags
list
private void confirmOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.io.ReaderInputStream.isOpen:Z
ifne 2
1: new java.io.IOException
dup
ldc "This stream has been closed."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/embed/io/ReaderInputStream;
Exceptions:
throws java.io.IOException
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual org.jruby.embed.io.ReaderInputStream.confirmOpen:()V
2: aload 0
getfield org.jruby.embed.io.ReaderInputStream.bytes:[B
ifnonnull 4
3: new java.io.IOException
dup
ldc "This stream is not available."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
isub
aload 1
monitorexit
5: ireturn
6: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
7: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/embed/io/ReaderInputStream;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual org.jruby.embed.io.ReaderInputStream.confirmOpen:()V
2: aload 0
iconst_0
putfield org.jruby.embed.io.ReaderInputStream.isOpen:Z
3: aload 0
aconst_null
putfield org.jruby.embed.io.ReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
4: aload 0
aconst_null
putfield org.jruby.embed.io.ReaderInputStream.bytes:[B
5: aload 1
monitorexit
6: goto 9
StackMap locals: org.jruby.embed.io.ReaderInputStream java.lang.Object
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/embed/io/ReaderInputStream;
Exception table:
from to target type
1 6 7 any
7 8 7 any
Exceptions:
throws java.io.IOException
public synchronized void mark(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Read limit < 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
getfield org.jruby.embed.io.ReaderInputStream.isOpen:Z
ifeq 6
4: aload 0
iload 1
putfield org.jruby.embed.io.ReaderInputStream.readlimit:I
5: aload 0
aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
putfield org.jruby.embed.io.ReaderInputStream.markedIndex:I
6: StackMap locals: java.lang.Object
StackMap stack:
aload 2
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 2
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 11 1 readlimit I
Exception table:
from to target type
3 7 8 any
8 9 8 any
MethodParameters:
Name Flags
readlimit
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/io/ReaderInputStream;
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual org.jruby.embed.io.ReaderInputStream.confirmOpen:()V
2: aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
if_icmplt 5
3: aload 1
monitorexit
4: iconst_m1
ireturn
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.bytes:[B
aload 0
dup
getfield org.jruby.embed.io.ReaderInputStream.position:I
dup_x1
iconst_1
iadd
putfield org.jruby.embed.io.ReaderInputStream.position:I
baload
aload 1
monitorexit
6: ireturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
8: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/embed/io/ReaderInputStream;
Exception table:
from to target type
1 4 7 any
5 6 7 any
7 8 7 any
Exceptions:
throws java.io.IOException
public int read(byte[]);
descriptor: ([B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual org.jruby.embed.io.ReaderInputStream.read:([BII)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 1 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 0
invokevirtual org.jruby.embed.io.ReaderInputStream.confirmOpen:()V
2: iload 3
ifne 5
3: aload 4
monitorexit
4: iconst_0
ireturn
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
if_icmplt 8
6: aload 4
monitorexit
7: iconst_m1
ireturn
8: StackMap locals:
StackMap stack:
iload 2
iflt 9
iload 2
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
if_icmpgt 9
iload 3
ifge 10
9: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Either one of, or both of off and len are invalid."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
iload 2
iadd
istore 5
start local 5 11: iload 5
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
if_icmpge 12
iload 5
goto 13
StackMap locals: int
StackMap stack:
12: aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
iconst_1
isub
StackMap locals:
StackMap stack: int
13: istore 5
14: iload 5
iload 3
iadd
istore 6
start local 6 15: iload 6
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
if_icmpge 16
iload 6
goto 17
StackMap locals: int
StackMap stack:
16: aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
iconst_1
isub
StackMap locals:
StackMap stack: int
17: istore 6
18: iload 6
iload 5
isub
iconst_1
iadd
iload 3
invokestatic java.lang.Math.min:(II)I
istore 7
start local 7 19: aload 0
getfield org.jruby.embed.io.ReaderInputStream.bytes:[B
iload 5
aload 1
iconst_0
iload 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: aload 0
dup
getfield org.jruby.embed.io.ReaderInputStream.position:I
iload 7
iadd
putfield org.jruby.embed.io.ReaderInputStream.position:I
21: iload 7
aload 4
monitorexit
22: ireturn
end local 7 end local 6 end local 5 23: StackMap locals: org.jruby.embed.io.ReaderInputStream byte[] int int java.lang.Object
StackMap stack: java.lang.Throwable
aload 4
monitorexit
24: athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 25 1 b [B
0 25 2 off I
0 25 3 len I
11 23 5 start I
15 23 6 end I
19 23 7 actuallyRead I
Exception table:
from to target type
1 4 23 any
5 7 23 any
8 22 23 any
23 24 23 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield org.jruby.embed.io.ReaderInputStream.isOpen:Z
ifne 3
2: new java.io.IOException
dup
ldc "This stream has been closed."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.markedIndex:I
ifge 5
4: new java.io.IOException
dup
ldc "This stream is not marked."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
aload 0
getfield org.jruby.embed.io.ReaderInputStream.markedIndex:I
isub
aload 0
getfield org.jruby.embed.io.ReaderInputStream.readlimit:I
if_icmple 7
6: new java.io.IOException
dup
ldc "Mark is invalidated."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.jruby.embed.io.ReaderInputStream.markedIndex:I
putfield org.jruby.embed.io.ReaderInputStream.position:I
8: aload 1
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/embed/io/ReaderInputStream;
Exception table:
from to target type
1 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Negarive skip"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
3: aload 0
getfield org.jruby.embed.io.ReaderInputStream.isOpen:Z
ifne 5
4: new java.io.IOException
dup
ldc "This stream has been closed."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
isub
i2l
lload 1
lcmp
ifge 9
6: aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
aload 0
getfield org.jruby.embed.io.ReaderInputStream.position:I
isub
i2l
lstore 4
start local 4 7: aload 0
aload 0
getfield org.jruby.embed.io.ReaderInputStream.totalBytes:I
putfield org.jruby.embed.io.ReaderInputStream.position:I
8: goto 11
end local 4 9: StackMap locals:
StackMap stack:
lload 1
lstore 4
start local 4 10: aload 0
dup
getfield org.jruby.embed.io.ReaderInputStream.position:I
i2l
lload 1
ladd
l2i
putfield org.jruby.embed.io.ReaderInputStream.position:I
11: StackMap locals: long
StackMap stack:
lload 4
aload 3
monitorexit
12: lreturn
end local 4 13: StackMap locals: org.jruby.embed.io.ReaderInputStream long java.lang.Object
StackMap stack: java.lang.Throwable
aload 3
monitorexit
14: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jruby/embed/io/ReaderInputStream;
0 15 1 n J
7 9 4 skipped J
10 13 4 skipped J
Exception table:
from to target type
3 12 13 any
13 14 13 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
}
SourceFile: "ReaderInputStream.java"