class com.sun.glass.ui.monocle.VNCScreen extends com.sun.glass.ui.monocle.HeadlessScreen
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.glass.ui.monocle.VNCScreen
super_class: com.sun.glass.ui.monocle.HeadlessScreen
{
private java.nio.channels.ServerSocketChannel server;
descriptor: Ljava/nio/channels/ServerSocketChannel;
flags: (0x0002) ACC_PRIVATE
private java.util.Set<com.sun.glass.ui.monocle.VNCScreen$ClientConnection> clients;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Lcom/sun/glass/ui/monocle/VNCScreen$ClientConnection;>;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
sipush 1024
sipush 600
bipush 32
invokespecial com.sun.glass.ui.monocle.HeadlessScreen.<init>:(III)V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
2: aload 0
invokestatic java.nio.channels.ServerSocketChannel.open:()Ljava/nio/channels/ServerSocketChannel;
putfield com.sun.glass.ui.monocle.VNCScreen.server:Ljava/nio/channels/ServerSocketChannel;
3: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/sun/glass/ui/monocle/VNCScreen.lambda$0()Ljava/lang/Integer; (6)
()Ljava/lang/Integer;
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 1
start local 1 5: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.server:Ljava/nio/channels/ServerSocketChannel;
new java.net.InetSocketAddress
dup
iload 1
invokespecial java.net.InetSocketAddress.<init>:(I)V
invokevirtual java.nio.channels.ServerSocketChannel.bind:(Ljava/net/SocketAddress;)Ljava/nio/channels/ServerSocketChannel;
pop
6: new java.lang.Thread
dup
new com.sun.glass.ui.monocle.VNCScreen$ConnectionAccepter
dup
aload 0
invokespecial com.sun.glass.ui.monocle.VNCScreen$ConnectionAccepter.<init>:(Lcom/sun/glass/ui/monocle/VNCScreen;)V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 2
start local 2 7: aload 2
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
8: aload 2
new java.lang.StringBuilder
dup
ldc "VNC Server on port "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
9: aload 2
invokevirtual java.lang.Thread.start:()V
end local 2 end local 1 10: goto 13
StackMap locals: com.sun.glass.ui.monocle.VNCScreen
StackMap stack: java.io.IOException
11: astore 1
start local 1 12: aload 1
invokevirtual java.io.IOException.printStackTrace:()V
end local 1 13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/glass/ui/monocle/VNCScreen;
5 10 1 vncPort I
7 10 2 t Ljava/lang/Thread;
12 13 1 e Ljava/io/IOException;
Exception table:
from to target type
2 10 11 Class java.io.IOException
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokespecial com.sun.glass.ui.monocle.HeadlessScreen.shutdown:()V
1: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 6
StackMap locals: com.sun.glass.ui.monocle.VNCScreen top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.glass.ui.monocle.VNCScreen$ClientConnection
astore 1
start local 1 3: aload 1
getfield com.sun.glass.ui.monocle.VNCScreen$ClientConnection.socket:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.close:()V
4: goto 6
StackMap locals: com.sun.glass.ui.monocle.VNCScreen com.sun.glass.ui.monocle.VNCScreen$ClientConnection java.util.Iterator
StackMap stack: java.io.IOException
5: pop
end local 1 6: StackMap locals: com.sun.glass.ui.monocle.VNCScreen top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/glass/ui/monocle/VNCScreen;
3 6 1 cc Lcom/sun/glass/ui/monocle/VNCScreen$ClientConnection;
Exception table:
from to target type
3 4 5 Class java.io.IOException
public void swapBuffers();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
dup
astore 2
monitorenter
1: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
anewarray com.sun.glass.ui.monocle.VNCScreen$ClientConnection
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast com.sun.glass.ui.monocle.VNCScreen$ClientConnection[]
astore 1
start local 1 2: aload 2
monitorexit
3: goto 6
end local 1 StackMap locals: com.sun.glass.ui.monocle.VNCScreen top java.util.Set
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
start local 1 6: StackMap locals: com.sun.glass.ui.monocle.VNCScreen com.sun.glass.ui.monocle.VNCScreen$ClientConnection[]
StackMap stack:
aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 13
StackMap locals: com.sun.glass.ui.monocle.VNCScreen com.sun.glass.ui.monocle.VNCScreen$ClientConnection[] top int int com.sun.glass.ui.monocle.VNCScreen$ClientConnection[]
StackMap stack:
7: aload 5
iload 3
aaload
astore 2
start local 2 8: aload 0
aload 2
getfield com.sun.glass.ui.monocle.VNCScreen$ClientConnection.socket:Ljava/nio/channels/SocketChannel;
invokevirtual com.sun.glass.ui.monocle.VNCScreen.sendBuffer:(Ljava/nio/channels/WritableByteChannel;)V
9: goto 12
StackMap locals: com.sun.glass.ui.monocle.VNCScreen com.sun.glass.ui.monocle.VNCScreen$ClientConnection[] com.sun.glass.ui.monocle.VNCScreen$ClientConnection int int com.sun.glass.ui.monocle.VNCScreen$ClientConnection[]
StackMap stack: java.io.IOException
10: pop
11: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
end local 2 12: StackMap locals: com.sun.glass.ui.monocle.VNCScreen com.sun.glass.ui.monocle.VNCScreen$ClientConnection[] top int int com.sun.glass.ui.monocle.VNCScreen$ClientConnection[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
iload 4
if_icmplt 7
14: aload 0
invokespecial com.sun.glass.ui.monocle.HeadlessScreen.swapBuffers:()V
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/glass/ui/monocle/VNCScreen;
2 4 1 ccs [Lcom/sun/glass/ui/monocle/VNCScreen$ClientConnection;
6 16 1 ccs [Lcom/sun/glass/ui/monocle/VNCScreen$ClientConnection;
8 12 2 cc Lcom/sun/glass/ui/monocle/VNCScreen$ClientConnection;
Exception table:
from to target type
1 3 4 any
4 5 4 any
8 9 10 Class java.io.IOException
private void removeClient(com.sun.glass.ui.monocle.VNCScreen$ClientConnection, java.io.IOException);
descriptor: (Lcom/sun/glass/ui/monocle/VNCScreen$ClientConnection;Ljava/io/IOException;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
dup
astore 3
monitorenter
1: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 6
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Disconnecting %s: %s\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
3: aload 1
getfield com.sun.glass.ui.monocle.VNCScreen$ClientConnection.descriptor:Ljava/lang/String;
aastore
dup
iconst_1
aload 2
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aastore
4: invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
5: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
6: StackMap locals: java.util.Set
StackMap stack:
aload 3
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/glass/ui/monocle/VNCScreen;
0 11 1 cc Lcom/sun/glass/ui/monocle/VNCScreen$ClientConnection;
0 11 2 e Ljava/io/IOException;
Exception table:
from to target type
1 7 8 any
8 9 8 any
MethodParameters:
Name Flags
cc
e
private void sendBuffer(java.nio.channels.WritableByteChannel);
descriptor: (Ljava/nio/channels/WritableByteChannel;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: bipush 16
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 2
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
pop
2: aload 2
iconst_0
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
3: aload 2
iconst_0
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
4: aload 2
iconst_1
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
5: aload 2
iconst_0
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
6: aload 2
iconst_0
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
7: aload 2
aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.width:I
i2s
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
8: aload 2
aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.height:I
i2s
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
9: aload 2
iconst_0
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
10: aload 2
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
11: aload 1
aload 2
invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
pop
12: aload 0
getfield com.sun.glass.ui.monocle.VNCScreen.fb:Lcom/sun/glass/ui/monocle/Framebuffer;
aload 1
invokevirtual com.sun.glass.ui.monocle.Framebuffer.write:(Ljava/nio/channels/WritableByteChannel;)V
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/glass/ui/monocle/VNCScreen;
0 14 1 out Ljava/nio/channels/WritableByteChannel;
1 14 2 buffer Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
private static java.lang.Integer lambda$0();
descriptor: ()Ljava/lang/Integer;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: ldc "vnc.port"
sipush 5901
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "VNCScreen.java"
NestMembers:
com.sun.glass.ui.monocle.VNCScreen$ClientConnection com.sun.glass.ui.monocle.VNCScreen$ConnectionAccepter
InnerClasses:
private ClientConnection = com.sun.glass.ui.monocle.VNCScreen$ClientConnection of com.sun.glass.ui.monocle.VNCScreen
private ConnectionAccepter = com.sun.glass.ui.monocle.VNCScreen$ConnectionAccepter of com.sun.glass.ui.monocle.VNCScreen
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles