public final class com.google.common.io.CountingInputStream extends java.io.FilterInputStream
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.io.CountingInputStream
super_class: java.io.FilterInputStream
{
private long count;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long mark;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.io.InputStream
invokespecial java.io.FilterInputStream.<init>:(Ljava/io/InputStream;)V
1: aload 0
ldc -1
putfield com.google.common.io.CountingInputStream.mark:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/CountingInputStream;
0 3 1 in Ljava/io/InputStream;
MethodParameters:
Name Flags
in
public long getCount();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.CountingInputStream.count:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/CountingInputStream;
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.CountingInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpeq 3
2: aload 0
dup
getfield com.google.common.io.CountingInputStream.count:J
lconst_1
ladd
putfield com.google.common.io.CountingInputStream.count:J
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/io/CountingInputStream;
1 4 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.CountingInputStream.in:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
istore 4
start local 4 1: iload 4
iconst_m1
if_icmpeq 3
2: aload 0
dup
getfield com.google.common.io.CountingInputStream.count:J
iload 4
i2l
ladd
putfield com.google.common.io.CountingInputStream.count:J
3: 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 4 0 this Lcom/google/common/io/CountingInputStream;
0 4 1 b [B
0 4 2 off I
0 4 3 len I
1 4 4 result I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
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: aload 0
getfield com.google.common.io.CountingInputStream.in:Ljava/io/InputStream;
lload 1
invokevirtual java.io.InputStream.skip:(J)J
lstore 3
start local 3 1: aload 0
dup
getfield com.google.common.io.CountingInputStream.count:J
lload 3
ladd
putfield com.google.common.io.CountingInputStream.count:J
2: lload 3
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/CountingInputStream;
0 3 1 n J
1 3 3 result J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
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.CountingInputStream.in:Ljava/io/InputStream;
iload 1
invokevirtual java.io.InputStream.mark:(I)V
1: aload 0
aload 0
getfield com.google.common.io.CountingInputStream.count:J
putfield com.google.common.io.CountingInputStream.mark:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/io/CountingInputStream;
0 3 1 readlimit I
MethodParameters:
Name Flags
readlimit
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.CountingInputStream.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.CountingInputStream.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.CountingInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.reset:()V
5: aload 0
aload 0
getfield com.google.common.io.CountingInputStream.mark:J
putfield com.google.common.io.CountingInputStream.count:J
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/io/CountingInputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "CountingInputStream.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtIncompatible()