class sun.print.ServiceNotifier extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.print.ServiceNotifier
super_class: java.lang.Thread
{
private javax.print.PrintService service;
descriptor: Ljavax/print/PrintService;
flags: (0x0002) ACC_PRIVATE
private java.util.Vector<javax.print.event.PrintServiceAttributeListener> listeners;
descriptor: Ljava/util/Vector;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Vector<Ljavax/print/event/PrintServiceAttributeListener;>;
private boolean stop;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private javax.print.attribute.PrintServiceAttributeSet lastSet;
descriptor: Ljavax/print/attribute/PrintServiceAttributeSet;
flags: (0x0002) ACC_PRIVATE
void <init>(javax.print.PrintService);
descriptor: (Ljavax/print/PrintService;)V
flags: (0x0000)
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aconst_null
new java.lang.StringBuilder
dup
aload 1
invokeinterface javax.print.PrintService.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 " notifier"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
iconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JZ)V
1: aload 0
iconst_0
putfield sun.print.ServiceNotifier.stop:Z
2: aload 0
aload 1
putfield sun.print.ServiceNotifier.service:Ljavax/print/PrintService;
3: aload 0
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
4: aload 0
iconst_4
invokevirtual sun.print.ServiceNotifier.setPriority:(I)V
5: aload 0
iconst_1
invokevirtual sun.print.ServiceNotifier.setDaemon:(Z)V
6: aload 0
invokevirtual sun.print.ServiceNotifier.start:()V
7: goto 9
StackMap locals: sun.print.ServiceNotifier javax.print.PrintService
StackMap stack: java.lang.SecurityException
8: pop
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/print/ServiceNotifier;
0 10 1 service Ljavax/print/PrintService;
Exception table:
from to target type
4 7 8 Class java.lang.SecurityException
MethodParameters:
Name Flags
service
void addListener(javax.print.event.PrintServiceAttributeListener);
descriptor: (Ljavax/print/event/PrintServiceAttributeListener;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 1
ifnull 2
aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
ifnonnull 4
2: StackMap locals: sun.print.ServiceNotifier
StackMap stack:
aload 2
monitorexit
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.add:(Ljava/lang/Object;)Z
pop
5: aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/print/ServiceNotifier;
0 10 1 listener Ljavax/print/event/PrintServiceAttributeListener;
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
MethodParameters:
Name Flags
listener
void removeListener(javax.print.event.PrintServiceAttributeListener);
descriptor: (Ljavax/print/event/PrintServiceAttributeListener;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 1
ifnull 2
aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
ifnonnull 4
2: StackMap locals: sun.print.ServiceNotifier
StackMap stack:
aload 2
monitorexit
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
aload 1
invokevirtual java.util.Vector.remove:(Ljava/lang/Object;)Z
pop
5: aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/print/ServiceNotifier;
0 10 1 listener Ljavax/print/event/PrintServiceAttributeListener;
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
MethodParameters:
Name Flags
listener
boolean isEmpty();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
ifnull 1
aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
invokevirtual java.util.Vector.isEmpty:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/print/ServiceNotifier;
void stopNotifier();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield sun.print.ServiceNotifier.stop:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/print/ServiceNotifier;
void wake();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.print.ServiceNotifier.interrupt:()V
1: goto 3
StackMap locals:
StackMap stack: java.lang.SecurityException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/print/ServiceNotifier;
Exception table:
from to target type
0 1 2 Class java.lang.SecurityException
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=13, args_size=1
start local 0 0: ldc 15000
lstore 1
start local 1 1: ldc 2000
lstore 3
start local 3 2: goto 35
3: StackMap locals: long long
StackMap stack:
lload 3
invokestatic java.lang.Thread.sleep:(J)V
4: goto 6
StackMap locals:
StackMap stack: java.lang.InterruptedException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
dup
astore 9
monitorenter
7: aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
ifnonnull 10
8: aload 9
monitorexit
9: goto 35
10: StackMap locals: sun.print.ServiceNotifier long long top top top top sun.print.ServiceNotifier
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 10
start local 10 11: aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
ifnull 28
12: aload 0
getfield sun.print.ServiceNotifier.service:Ljavax/print/PrintService;
instanceof sun.print.AttributeUpdater
ifeq 16
13: aload 0
getfield sun.print.ServiceNotifier.service:Ljavax/print/PrintService;
checkcast sun.print.AttributeUpdater
invokeinterface sun.print.AttributeUpdater.getUpdatedAttributes:()Ljavax/print/attribute/PrintServiceAttributeSet;
14: astore 8
start local 8 15: goto 17
end local 8 16: StackMap locals: long
StackMap stack:
aload 0
getfield sun.print.ServiceNotifier.service:Ljavax/print/PrintService;
invokeinterface javax.print.PrintService.getAttributes:()Ljavax/print/attribute/PrintServiceAttributeSet;
astore 8
start local 8 17: StackMap locals: sun.print.ServiceNotifier long long top top top javax.print.attribute.PrintServiceAttributeSet sun.print.ServiceNotifier long
StackMap stack:
aload 8
ifnull 28
aload 8
invokeinterface javax.print.attribute.PrintServiceAttributeSet.isEmpty:()Z
ifne 28
18: iconst_0
istore 12
start local 12 19: goto 27
20: StackMap locals: int
StackMap stack:
aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
iload 12
invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
checkcast javax.print.event.PrintServiceAttributeListener
astore 7
start local 7 21: new javax.print.attribute.HashPrintServiceAttributeSet
dup
aload 8
invokespecial javax.print.attribute.HashPrintServiceAttributeSet.<init>:(Ljavax/print/attribute/PrintServiceAttributeSet;)V
22: astore 5
start local 5 23: new javax.print.event.PrintServiceAttributeEvent
dup
aload 0
getfield sun.print.ServiceNotifier.service:Ljavax/print/PrintService;
aload 5
invokespecial javax.print.event.PrintServiceAttributeEvent.<init>:(Ljavax/print/PrintService;Ljavax/print/attribute/PrintServiceAttributeSet;)V
24: astore 6
start local 6 25: aload 7
aload 6
invokeinterface javax.print.event.PrintServiceAttributeListener.attributeUpdate:(Ljavax/print/event/PrintServiceAttributeEvent;)V
26: iinc 12 1
end local 7 end local 6 end local 5 StackMap locals:
StackMap stack:
27: iload 12
aload 0
getfield sun.print.ServiceNotifier.listeners:Ljava/util/Vector;
invokevirtual java.util.Vector.size:()I
if_icmplt 20
end local 12 end local 8 28: StackMap locals: sun.print.ServiceNotifier long long top top top top sun.print.ServiceNotifier long
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lload 10
lsub
ldc 10
lmul
lstore 3
29: lload 3
lload 1
lcmp
ifge 31
30: lload 1
lstore 3
end local 10 31: StackMap locals:
StackMap stack:
aload 9
monitorexit
32: goto 35
StackMap locals:
StackMap stack: java.lang.Throwable
33: aload 9
monitorexit
34: athrow
35: StackMap locals: sun.print.ServiceNotifier long long
StackMap stack:
aload 0
getfield sun.print.ServiceNotifier.stop:Z
ifeq 3
36: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lsun/print/ServiceNotifier;
1 37 1 minSleepTime J
2 37 3 sleepTime J
23 27 5 attrs Ljavax/print/attribute/HashPrintServiceAttributeSet;
25 27 6 attrEvent Ljavax/print/event/PrintServiceAttributeEvent;
21 27 7 listener Ljavax/print/event/PrintServiceAttributeListener;
15 16 8 psa Ljavax/print/attribute/PrintServiceAttributeSet;
17 28 8 psa Ljavax/print/attribute/PrintServiceAttributeSet;
11 31 10 startTime J
19 28 12 i I
Exception table:
from to target type
3 4 5 Class java.lang.InterruptedException
7 9 33 any
10 32 33 any
33 34 33 any
}
SourceFile: "ServiceNotifier.java"