public class sun.net.www.MeteredStream extends java.io.FilterInputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.MeteredStream
super_class: java.io.FilterInputStream
{
protected boolean closed;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected long expected;
descriptor: J
flags: (0x0004) ACC_PROTECTED
protected long count;
descriptor: J
flags: (0x0004) ACC_PROTECTED
protected long markedCount;
descriptor: J
flags: (0x0004) ACC_PROTECTED
protected int markLimit;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected sun.net.ProgressSource pi;
descriptor: Lsun/net/ProgressSource;
flags: (0x0004) ACC_PROTECTED
private final java.util.concurrent.locks.ReentrantLock readLock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/net/www/MeteredStream;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.www.MeteredStream.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.InputStream, sun.net.ProgressSource, long);
descriptor: (Ljava/io/InputStream;Lsun/net/ProgressSource;J)V
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
aload 1
invokespecial java.io.FilterInputStream.<init>:(Ljava/io/InputStream;)V
1: aload 0
iconst_0
putfield sun.net.www.MeteredStream.closed:Z
2: aload 0
lconst_0
putfield sun.net.www.MeteredStream.count:J
3: aload 0
lconst_0
putfield sun.net.www.MeteredStream.markedCount:J
4: aload 0
iconst_m1
putfield sun.net.www.MeteredStream.markLimit:I
5: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.net.www.MeteredStream.readLock:Ljava/util/concurrent/locks/ReentrantLock;
6: aload 0
aload 2
putfield sun.net.www.MeteredStream.pi:Lsun/net/ProgressSource;
7: aload 0
lload 3
putfield sun.net.www.MeteredStream.expected:J
8: aload 2
ifnull 10
9: aload 2
lconst_0
lload 3
invokevirtual sun.net.ProgressSource.updateProgress:(JJ)V
10: StackMap locals: sun.net.www.MeteredStream java.io.InputStream sun.net.ProgressSource long
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/net/www/MeteredStream;
0 11 1 is Ljava/io/InputStream;
0 11 2 pi Lsun/net/ProgressSource;
0 11 3 expected J
MethodParameters:
Name Flags
is
pi
expected
private final void justRead(long);
descriptor: (J)V
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.net.www.MeteredStream.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual sun.net.www.MeteredStream.isLockHeldByCurrentThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
lload 1
ldc -1
lcmp
ifne 5
2: aload 0
invokevirtual sun.net.www.MeteredStream.isMarked:()Z
ifne 4
3: aload 0
invokevirtual sun.net.www.MeteredStream.close:()V
4: StackMap locals:
StackMap stack:
return
5: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.net.www.MeteredStream.count:J
lload 1
ladd
putfield sun.net.www.MeteredStream.count:J
6: aload 0
getfield sun.net.www.MeteredStream.count:J
aload 0
getfield sun.net.www.MeteredStream.markedCount:J
lsub
aload 0
getfield sun.net.www.MeteredStream.markLimit:I
i2l
lcmp
ifle 8
7: aload 0
iconst_m1
putfield sun.net.www.MeteredStream.markLimit:I
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.pi:Lsun/net/ProgressSource;
ifnull 10
9: aload 0
getfield sun.net.www.MeteredStream.pi:Lsun/net/ProgressSource;
aload 0
getfield sun.net.www.MeteredStream.count:J
aload 0
getfield sun.net.www.MeteredStream.expected:J
invokevirtual sun.net.ProgressSource.updateProgress:(JJ)V
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.MeteredStream.isMarked:()Z
ifeq 12
11: return
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.expected:J
lconst_0
lcmp
ifle 15
13: aload 0
getfield sun.net.www.MeteredStream.count:J
aload 0
getfield sun.net.www.MeteredStream.expected:J
lcmp
iflt 15
14: aload 0
invokevirtual sun.net.www.MeteredStream.close:()V
15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/net/www/MeteredStream;
0 16 1 n J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
private boolean isMarked();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic sun.net.www.MeteredStream.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual sun.net.www.MeteredStream.isLockHeldByCurrentThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.markLimit:I
ifge 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.count:J
aload 0
getfield sun.net.www.MeteredStream.markedCount:J
lsub
aload 0
getfield sun.net.www.MeteredStream.markLimit:I
i2l
lcmp
ifle 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/www/MeteredStream;
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 4
2: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 1
start local 1 5: iload 1
iconst_m1
if_icmpeq 8
6: aload 0
lconst_1
invokevirtual sun.net.www.MeteredStream.justRead:(J)V
7: goto 9
8: StackMap locals: int
StackMap stack:
aload 0
iload 1
i2l
invokevirtual sun.net.www.MeteredStream.justRead:(J)V
9: StackMap locals:
StackMap stack:
iload 1
istore 3
10: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
11: iload 3
ireturn
end local 1 12: StackMap locals: sun.net.www.MeteredStream
StackMap stack: java.lang.Throwable
astore 2
13: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
14: aload 2
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/net/www/MeteredStream;
5 12 1 c I
Exception table:
from to target type
1 2 12 any
4 10 12 any
Exceptions:
throws java.io.IOException
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 4
2: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.in:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
istore 4
start local 4 5: aload 0
iload 4
i2l
invokevirtual sun.net.www.MeteredStream.justRead:(J)V
6: iload 4
istore 6
7: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
8: iload 6
ireturn
end local 4 9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
10: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
11: aload 5
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/www/MeteredStream;
0 12 1 b [B
0 12 2 off I
0 12 3 len I
5 9 4 n I
Exception table:
from to target type
1 2 9 any
4 7 9 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 4
2: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
3: lconst_0
lreturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.in:Ljava/io/InputStream;
instanceof sun.net.www.http.ChunkedInputStream
ifeq 7
5: aload 0
getfield sun.net.www.MeteredStream.in:Ljava/io/InputStream;
lload 1
invokevirtual java.io.InputStream.skip:(J)J
lstore 1
6: goto 11
7: StackMap locals:
StackMap stack:
lload 1
aload 0
getfield sun.net.www.MeteredStream.expected:J
aload 0
getfield sun.net.www.MeteredStream.count:J
lsub
lcmp
ifle 8
aload 0
getfield sun.net.www.MeteredStream.expected:J
aload 0
getfield sun.net.www.MeteredStream.count:J
lsub
goto 9
StackMap locals:
StackMap stack:
8: lload 1
StackMap locals:
StackMap stack: long
9: lstore 3
start local 3 10: aload 0
getfield sun.net.www.MeteredStream.in:Ljava/io/InputStream;
lload 3
invokevirtual java.io.InputStream.skip:(J)J
lstore 1
end local 3 11: StackMap locals:
StackMap stack:
aload 0
lload 1
invokevirtual sun.net.www.MeteredStream.justRead:(J)V
12: lload 1
lstore 6
13: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
14: lload 6
lreturn
15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
16: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
17: aload 5
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/net/www/MeteredStream;
0 18 1 n J
10 11 3 min J
Exception table:
from to target type
1 2 15 any
4 13 15 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 4
2: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MeteredStream.pi:Lsun/net/ProgressSource;
ifnull 6
5: aload 0
getfield sun.net.www.MeteredStream.pi:Lsun/net/ProgressSource;
invokevirtual sun.net.ProgressSource.finishTracking:()V
6: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.www.MeteredStream.closed:Z
7: aload 0
getfield sun.net.www.MeteredStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
8: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 1
10: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
11: aload 1
athrow
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
13: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/net/www/MeteredStream;
Exception table:
from to target type
1 2 9 any
4 9 9 any
Exceptions:
throws java.io.IOException
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: aload 0
getfield sun.net.www.MeteredStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
StackMap locals:
StackMap stack: int
3: istore 2
4: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
5: iload 2
ireturn
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
7: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
8: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/MeteredStream;
Exception table:
from to target type
1 4 6 any
Exceptions:
throws java.io.IOException
public void mark(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 4
2: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
3: return
4: StackMap locals:
StackMap stack:
aload 0
iload 1
invokespecial java.io.FilterInputStream.mark:(I)V
5: aload 0
aload 0
getfield sun.net.www.MeteredStream.count:J
putfield sun.net.www.MeteredStream.markedCount:J
6: aload 0
iload 1
putfield sun.net.www.MeteredStream.markLimit:I
7: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 2
9: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
10: aload 2
athrow
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/net/www/MeteredStream;
0 13 1 readLimit I
Exception table:
from to target type
1 2 8 any
4 8 8 any
MethodParameters:
Name Flags
readLimit
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 4
2: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
3: return
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.MeteredStream.isMarked:()Z
ifne 6
5: new java.io.IOException
dup
ldc "Resetting to an invalid mark"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.net.www.MeteredStream.markedCount:J
putfield sun.net.www.MeteredStream.count:J
7: aload 0
invokespecial java.io.FilterInputStream.reset:()V
8: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 1
10: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
11: aload 1
athrow
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
13: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/net/www/MeteredStream;
Exception table:
from to target type
1 2 9 any
4 9 9 any
Exceptions:
throws java.io.IOException
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.MeteredStream.lock:()V
1: aload 0
getfield sun.net.www.MeteredStream.closed:Z
ifeq 4
2: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokespecial java.io.FilterInputStream.markSupported:()Z
istore 2
5: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
6: iload 2
ireturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
8: aload 0
invokevirtual sun.net.www.MeteredStream.unlock:()V
9: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/www/MeteredStream;
Exception table:
from to target type
1 2 7 any
4 5 7 any
public final void lock();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.MeteredStream.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/MeteredStream;
public final void unlock();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.MeteredStream.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/MeteredStream;
public final boolean isLockHeldByCurrentThread();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.MeteredStream.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/MeteredStream;
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.MeteredStream.close:()V
1: aload 0
getfield sun.net.www.MeteredStream.pi:Lsun/net/ProgressSource;
ifnull 7
2: aload 0
getfield sun.net.www.MeteredStream.pi:Lsun/net/ProgressSource;
invokevirtual sun.net.ProgressSource.close:()V
3: goto 7
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
invokespecial java.lang.Object.finalize:()V
6: aload 1
athrow
7: StackMap locals:
StackMap stack:
aload 0
invokespecial java.lang.Object.finalize:()V
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/MeteredStream;
Exception table:
from to target type
0 4 4 any
Exceptions:
throws java.lang.Throwable
}
SourceFile: "MeteredStream.java"