public class sun.net.ProgressSource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.ProgressSource
super_class: java.lang.Object
{
private java.net.URL url;
descriptor: Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
private java.lang.String method;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String contentType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private long progress;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long lastProgress;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long expected;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private sun.net.ProgressSource$State state;
descriptor: Lsun/net/ProgressSource$State;
flags: (0x0002) ACC_PRIVATE
private boolean connected;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int threshold;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private sun.net.ProgressMonitor progressMonitor;
descriptor: Lsun/net/ProgressMonitor;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.net.URL, java.lang.String);
descriptor: (Ljava/net/URL;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
ldc -1
invokespecial sun.net.ProgressSource.<init>:(Ljava/net/URL;Ljava/lang/String;J)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/ProgressSource;
0 2 1 url Ljava/net/URL;
0 2 2 method Ljava/lang/String;
MethodParameters:
Name Flags
url
method
public void <init>(java.net.URL, java.lang.String, long);
descriptor: (Ljava/net/URL;Ljava/lang/String;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lconst_0
putfield sun.net.ProgressSource.progress:J
2: aload 0
lconst_0
putfield sun.net.ProgressSource.lastProgress:J
3: aload 0
ldc -1
putfield sun.net.ProgressSource.expected:J
4: aload 0
iconst_0
putfield sun.net.ProgressSource.connected:Z
5: aload 0
sipush 8192
putfield sun.net.ProgressSource.threshold:I
6: aload 0
aload 1
putfield sun.net.ProgressSource.url:Ljava/net/URL;
7: aload 0
aload 2
putfield sun.net.ProgressSource.method:Ljava/lang/String;
8: aload 0
ldc "content/unknown"
putfield sun.net.ProgressSource.contentType:Ljava/lang/String;
9: aload 0
lconst_0
putfield sun.net.ProgressSource.progress:J
10: aload 0
lconst_0
putfield sun.net.ProgressSource.lastProgress:J
11: aload 0
lload 3
putfield sun.net.ProgressSource.expected:J
12: aload 0
getstatic sun.net.ProgressSource$State.NEW:Lsun/net/ProgressSource$State;
putfield sun.net.ProgressSource.state:Lsun/net/ProgressSource$State;
13: aload 0
invokestatic sun.net.ProgressMonitor.getDefault:()Lsun/net/ProgressMonitor;
putfield sun.net.ProgressSource.progressMonitor:Lsun/net/ProgressMonitor;
14: aload 0
aload 0
getfield sun.net.ProgressSource.progressMonitor:Lsun/net/ProgressMonitor;
invokevirtual sun.net.ProgressMonitor.getProgressUpdateThreshold:()I
putfield sun.net.ProgressSource.threshold:I
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/net/ProgressSource;
0 16 1 url Ljava/net/URL;
0 16 2 method Ljava/lang/String;
0 16 3 expected J
MethodParameters:
Name Flags
url
method
expected
public boolean connected();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.connected:Z
ifne 4
1: aload 0
iconst_1
putfield sun.net.ProgressSource.connected:Z
2: aload 0
getstatic sun.net.ProgressSource$State.CONNECTED:Lsun/net/ProgressSource$State;
putfield sun.net.ProgressSource.state:Lsun/net/ProgressSource$State;
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/ProgressSource;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic sun.net.ProgressSource$State.DELETE:Lsun/net/ProgressSource$State;
putfield sun.net.ProgressSource.state:Lsun/net/ProgressSource$State;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/ProgressSource;
public java.net.URL getURL();
descriptor: ()Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.url:Ljava/net/URL;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/ProgressSource;
public java.lang.String getMethod();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.method:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/ProgressSource;
public java.lang.String getContentType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.contentType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/ProgressSource;
public void setContentType(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield sun.net.ProgressSource.contentType:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/ProgressSource;
0 2 1 ct Ljava/lang/String;
MethodParameters:
Name Flags
ct
public long getProgress();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.progress:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/ProgressSource;
public long getExpected();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.expected:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/ProgressSource;
public sun.net.ProgressSource$State getState();
descriptor: ()Lsun/net/ProgressSource$State;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.state:Lsun/net/ProgressSource$State;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/ProgressSource;
public void beginTracking();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.progressMonitor:Lsun/net/ProgressMonitor;
aload 0
invokevirtual sun.net.ProgressMonitor.registerSource:(Lsun/net/ProgressSource;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/ProgressSource;
public void finishTracking();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.ProgressSource.progressMonitor:Lsun/net/ProgressMonitor;
aload 0
invokevirtual sun.net.ProgressMonitor.unregisterSource:(Lsun/net/ProgressSource;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/ProgressSource;
public void updateProgress(long, long);
descriptor: (JJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
aload 0
getfield sun.net.ProgressSource.progress:J
putfield sun.net.ProgressSource.lastProgress:J
1: aload 0
lload 1
putfield sun.net.ProgressSource.progress:J
2: aload 0
lload 3
putfield sun.net.ProgressSource.expected:J
3: aload 0
invokevirtual sun.net.ProgressSource.connected:()Z
ifne 5
4: aload 0
getstatic sun.net.ProgressSource$State.CONNECTED:Lsun/net/ProgressSource$State;
putfield sun.net.ProgressSource.state:Lsun/net/ProgressSource$State;
goto 6
5: StackMap locals:
StackMap stack:
aload 0
getstatic sun.net.ProgressSource$State.UPDATE:Lsun/net/ProgressSource$State;
putfield sun.net.ProgressSource.state:Lsun/net/ProgressSource$State;
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.ProgressSource.lastProgress:J
aload 0
getfield sun.net.ProgressSource.threshold:I
i2l
ldiv
aload 0
getfield sun.net.ProgressSource.progress:J
aload 0
getfield sun.net.ProgressSource.threshold:I
i2l
ldiv
lcmp
ifeq 8
7: aload 0
getfield sun.net.ProgressSource.progressMonitor:Lsun/net/ProgressMonitor;
aload 0
invokevirtual sun.net.ProgressMonitor.updateProgress:(Lsun/net/ProgressSource;)V
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.ProgressSource.expected:J
ldc -1
lcmp
ifeq 11
9: aload 0
getfield sun.net.ProgressSource.progress:J
aload 0
getfield sun.net.ProgressSource.expected:J
lcmp
iflt 11
aload 0
getfield sun.net.ProgressSource.progress:J
lconst_0
lcmp
ifeq 11
10: aload 0
invokevirtual sun.net.ProgressSource.close:()V
11: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/ProgressSource;
0 12 1 latestProgress J
0 12 3 expectedProgress J
MethodParameters:
Name Flags
latestProgress
expectedProgress
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/ProgressSource;
Exceptions:
throws java.lang.CloneNotSupportedException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "[url="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.net.ProgressSource.url:Ljava/net/URL;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", method="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.net.ProgressSource.method:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", state="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.net.ProgressSource.state:Lsun/net/ProgressSource$State;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
1: ldc ", content-type="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.net.ProgressSource.contentType:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", progress="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.net.ProgressSource.progress:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ", expected="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.net.ProgressSource.expected:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/ProgressSource;
}
SourceFile: "ProgressSource.java"
NestMembers:
sun.net.ProgressSource$State
InnerClasses:
public final State = sun.net.ProgressSource$State of sun.net.ProgressSource