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 // com.sun.glass.ui.monocle.VNCScreen this
         0: .line 54
            aload 0 /* this */
            sipush 1024
            sipush 600
            bipush 32
            invokespecial com.sun.glass.ui.monocle.HeadlessScreen.<init>:(III)V
         1: .line 51
            aload 0 /* this */
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            putfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
         2: .line 56
            aload 0 /* this */
            invokestatic java.nio.channels.ServerSocketChannel.open:()Ljava/nio/channels/ServerSocketChannel;
            putfield com.sun.glass.ui.monocle.VNCScreen.server:Ljava/nio/channels/ServerSocketChannel;
         3: .line 59
            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: .line 57
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            istore 1 /* vncPort */
        start local 1 // int vncPort
         5: .line 60
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.server:Ljava/nio/channels/ServerSocketChannel;
            new java.net.InetSocketAddress
            dup
            iload 1 /* vncPort */
            invokespecial java.net.InetSocketAddress.<init>:(I)V
            invokevirtual java.nio.channels.ServerSocketChannel.bind:(Ljava/net/SocketAddress;)Ljava/nio/channels/ServerSocketChannel;
            pop
         6: .line 61
            new java.lang.Thread
            dup
            new com.sun.glass.ui.monocle.VNCScreen$ConnectionAccepter
            dup
            aload 0 /* this */
            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 /* t */
        start local 2 // java.lang.Thread t
         7: .line 62
            aload 2 /* t */
            iconst_1
            invokevirtual java.lang.Thread.setDaemon:(Z)V
         8: .line 63
            aload 2 /* t */
            new java.lang.StringBuilder
            dup
            ldc "VNC Server on port "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* vncPort */
            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: .line 64
            aload 2 /* t */
            invokevirtual java.lang.Thread.start:()V
        end local 2 // java.lang.Thread t
        end local 1 // int vncPort
        10: .line 65
            goto 13
      StackMap locals: com.sun.glass.ui.monocle.VNCScreen
      StackMap stack: java.io.IOException
        11: astore 1 /* e */
        start local 1 // java.io.IOException e
        12: .line 66
            aload 1 /* e */
            invokevirtual java.io.IOException.printStackTrace:()V
        end local 1 // java.io.IOException e
        13: .line 68
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.sun.glass.ui.monocle.VNCScreen this
      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 // com.sun.glass.ui.monocle.VNCScreen this
         0: .line 72
            aload 0 /* this */
            invokespecial com.sun.glass.ui.monocle.HeadlessScreen.shutdown:()V
         1: .line 73
            aload 0 /* this */
            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 /* cc */
        start local 1 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection cc
         3: .line 75
            aload 1 /* cc */
            getfield com.sun.glass.ui.monocle.VNCScreen$ClientConnection.socket:Ljava/nio/channels/SocketChannel;
            invokevirtual java.nio.channels.SocketChannel.close:()V
         4: .line 76
            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 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection cc
         6: .line 73
      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: .line 78
            return
        end local 0 // com.sun.glass.ui.monocle.VNCScreen this
      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 // com.sun.glass.ui.monocle.VNCScreen this
         0: .line 83
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
            dup
            astore 2
            monitorenter
         1: .line 84
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
            aload 0 /* this */
            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 /* ccs */
        start local 1 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection[] ccs
         2: .line 83
            aload 2
            monitorexit
         3: goto 6
        end local 1 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection[] ccs
      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 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection[] ccs
         6: .line 86
      StackMap locals: com.sun.glass.ui.monocle.VNCScreen com.sun.glass.ui.monocle.VNCScreen$ClientConnection[]
      StackMap stack:
            aload 1 /* ccs */
            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 /* cc */
        start local 2 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection cc
         8: .line 88
            aload 0 /* this */
            aload 2 /* cc */
            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: .line 89
            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: .line 90
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
            aload 2 /* cc */
            invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
            pop
        end local 2 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection cc
        12: .line 86
      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: .line 93
            aload 0 /* this */
            invokespecial com.sun.glass.ui.monocle.HeadlessScreen.swapBuffers:()V
        15: .line 94
            return
        end local 1 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection[] ccs
        end local 0 // com.sun.glass.ui.monocle.VNCScreen this
      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 // com.sun.glass.ui.monocle.VNCScreen this
        start local 1 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection cc
        start local 2 // java.io.IOException e
         0: .line 97
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
            dup
            astore 3
            monitorenter
         1: .line 98
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
            aload 1 /* cc */
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            ifeq 6
         2: .line 99
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Disconnecting %s: %s\n"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
         3: .line 100
            aload 1 /* cc */
            getfield com.sun.glass.ui.monocle.VNCScreen$ClientConnection.descriptor:Ljava/lang/String;
            aastore
            dup
            iconst_1
            aload 2 /* e */
            invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
            aastore
         4: .line 99
            invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
            pop
         5: .line 101
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.clients:Ljava/util/Set;
            aload 1 /* cc */
            invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
            pop
         6: .line 97
      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: .line 104
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.io.IOException e
        end local 1 // com.sun.glass.ui.monocle.VNCScreen$ClientConnection cc
        end local 0 // com.sun.glass.ui.monocle.VNCScreen this
      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 // com.sun.glass.ui.monocle.VNCScreen this
        start local 1 // java.nio.channels.WritableByteChannel out
         0: .line 107
            bipush 16
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            astore 2 /* buffer */
        start local 2 // java.nio.ByteBuffer buffer
         1: .line 108
            aload 2 /* buffer */
            getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
            invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
            pop
         2: .line 109
            aload 2 /* buffer */
            iconst_0
            invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
            pop
         3: .line 110
            aload 2 /* buffer */
            iconst_0
            invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
            pop
         4: .line 111
            aload 2 /* buffer */
            iconst_1
            invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
            pop
         5: .line 112
            aload 2 /* buffer */
            iconst_0
            invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
            pop
         6: .line 113
            aload 2 /* buffer */
            iconst_0
            invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
            pop
         7: .line 114
            aload 2 /* buffer */
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.width:I
            i2s
            invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
            pop
         8: .line 115
            aload 2 /* buffer */
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.height:I
            i2s
            invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
            pop
         9: .line 116
            aload 2 /* buffer */
            iconst_0
            invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
            pop
        10: .line 117
            aload 2 /* buffer */
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            pop
        11: .line 118
            aload 1 /* out */
            aload 2 /* buffer */
            invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
            pop
        12: .line 119
            aload 0 /* this */
            getfield com.sun.glass.ui.monocle.VNCScreen.fb:Lcom/sun/glass/ui/monocle/Framebuffer;
            aload 1 /* out */
            invokevirtual com.sun.glass.ui.monocle.Framebuffer.write:(Ljava/nio/channels/WritableByteChannel;)V
        13: .line 120
            return
        end local 2 // java.nio.ByteBuffer buffer
        end local 1 // java.nio.channels.WritableByteChannel out
        end local 0 // com.sun.glass.ui.monocle.VNCScreen this
      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: .line 59
            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