final class com.google.common.io.ByteStreams$LimitedInputStream extends java.io.FilterInputStream
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.io.ByteStreams$LimitedInputStream
super_class: java.io.FilterInputStream
{
private long left;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long mark;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>(java.io.InputStream, long);
descriptor: (Ljava/io/InputStream;J)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.io.FilterInputStream.<init>:(Ljava/io/InputStream;)V
1: aload 0
ldc -1
putfield com.google.common.io.ByteStreams$LimitedInputStream.mark:J
2: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: lload 2
lconst_0
lcmp
iflt 4
iconst_1
goto 5
StackMap locals: com.google.common.io.ByteStreams$LimitedInputStream java.io.InputStream long
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ldc "limit must be non-negative"
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/Object;)V
6: aload 0
lload 2
putfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/io/ByteStreams$LimitedInputStream;
0 8 1 in Ljava/io/InputStream;
0 8 2 limit J
MethodParameters:
Name Flags
in
limit
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
i2l
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
invokestatic java.lang.Math.min:(JJ)J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/ByteStreams$LimitedInputStream;
Exceptions:
throws java.io.IOException
public synchronized void mark(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.in:Ljava/io/InputStream;
iload 1
invokevirtual java.io.InputStream.mark:(I)V
1: aload 0
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
putfield com.google.common.io.ByteStreams$LimitedInputStream.mark:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/ByteStreams$LimitedInputStream;
0 3 1 readLimit I
MethodParameters:
Name Flags
readLimit
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
lconst_0
lcmp
ifne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 1
start local 1 3: iload 1
iconst_m1
if_icmpeq 5
4: aload 0
dup
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
lconst_1
lsub
putfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
5: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/io/ByteStreams$LimitedInputStream;
3 6 1 result I
Exceptions:
throws java.io.IOException
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
lconst_0
lcmp
ifne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
iload 3
i2l
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 3
3: aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.in:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
istore 4
start local 4 4: iload 4
iconst_m1
if_icmpeq 6
5: aload 0
dup
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
iload 4
i2l
lsub
putfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
6: StackMap locals: int
StackMap stack:
iload 4
ireturn
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 Lcom/google/common/io/ByteStreams$LimitedInputStream;
0 7 1 b [B
0 7 2 off I
0 7 3 len I
4 7 4 result I
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=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.markSupported:()Z
ifne 2
1: new java.io.IOException
dup
ldc "Mark not supported"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.mark:J
ldc -1
lcmp
ifne 4
3: new java.io.IOException
dup
ldc "Mark not set"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.reset:()V
5: aload 0
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.mark:J
putfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/io/ByteStreams$LimitedInputStream;
Exceptions:
throws java.io.IOException
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
invokestatic java.lang.Math.min:(JJ)J
lstore 1
1: aload 0
getfield com.google.common.io.ByteStreams$LimitedInputStream.in:Ljava/io/InputStream;
lload 1
invokevirtual java.io.InputStream.skip:(J)J
lstore 3
start local 3 2: aload 0
dup
getfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
lload 3
lsub
putfield com.google.common.io.ByteStreams$LimitedInputStream.left:J
3: lload 3
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/io/ByteStreams$LimitedInputStream;
0 4 1 n J
2 4 3 skipped J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
}
SourceFile: "ByteStreams.java"
NestHost: com.google.common.io.ByteStreams
InnerClasses:
private final LimitedInputStream = com.google.common.io.ByteStreams$LimitedInputStream of com.google.common.io.ByteStreams