class com.sun.glass.ui.monocle.SysFS
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.glass.ui.monocle.SysFS
super_class: java.lang.Object
{
static final java.lang.String CURSOR_BLINK;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "/sys/devices/virtual/graphics/fbcon/cursor_blink"
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/SysFS;
static java.util.Map<java.lang.String, java.util.BitSet> readCapabilities(java.io.File);
descriptor: (Ljava/io/File;)Ljava/util/Map;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=10, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: new java.io.File
dup
aload 0
ldc "device/capabilities"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: aload 1
areturn
4: StackMap locals: java.util.Map java.io.File[]
StackMap stack:
iconst_0
istore 3
start local 3 5: goto 32
6: StackMap locals: int
StackMap stack:
new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 2
iload 3
aaload
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 7: aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 5
start local 5 8: aload 4
invokevirtual java.io.BufferedReader.close:()V
9: aload 5
ifnonnull 11
10: goto 31
11: StackMap locals: java.io.BufferedReader java.lang.String
StackMap stack:
aload 5
ldc " "
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 6
start local 6 12: aload 6
ifnonnull 14
13: goto 31
14: StackMap locals: java.lang.String[]
StackMap stack:
aload 6
arraylength
invokestatic com.sun.glass.ui.monocle.LinuxArch.is64Bit:()Z
ifeq 15
bipush 8
goto 16
StackMap locals:
StackMap stack: int
15: iconst_4
StackMap locals: java.io.File java.util.Map java.io.File[] int java.io.BufferedReader java.lang.String java.lang.String[]
StackMap stack: int int
16: imul
newarray 8
astore 7
start local 7 17: aload 7
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 8
start local 8 18: aload 8
getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
pop
19: aload 6
arraylength
iconst_1
isub
istore 9
start local 9 20: goto 26
21: StackMap locals: byte[] java.nio.ByteBuffer int
StackMap stack:
invokestatic com.sun.glass.ui.monocle.LinuxArch.is64Bit:()Z
ifeq 24
22: aload 8
aload 6
iload 9
aaload
bipush 16
invokestatic java.lang.Long.parseUnsignedLong:(Ljava/lang/String;I)J
invokevirtual java.nio.ByteBuffer.putLong:(J)Ljava/nio/ByteBuffer;
pop
23: goto 25
24: StackMap locals:
StackMap stack:
aload 8
aload 6
iload 9
aaload
bipush 16
invokestatic java.lang.Integer.parseUnsignedInt:(Ljava/lang/String;I)I
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
25: StackMap locals:
StackMap stack:
iinc 9 -1
StackMap locals:
StackMap stack:
26: iload 9
ifge 21
end local 9 27: aload 1
aload 2
iload 3
aaload
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 7
invokestatic java.util.BitSet.valueOf:([B)Ljava/util/BitSet;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 end local 7 end local 6 end local 5 end local 4 28: goto 31
StackMap locals: java.io.File java.util.Map java.io.File[] int
StackMap stack: java.lang.Exception
29: astore 4
start local 4 30: aload 4
invokevirtual java.lang.Exception.printStackTrace:()V
end local 4 31: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
32: iload 3
aload 2
arraylength
if_icmplt 6
end local 3 33: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 sysPath Ljava/io/File;
1 34 1 capsMap Ljava/util/Map<Ljava/lang/String;Ljava/util/BitSet;>;
2 34 2 capsFiles [Ljava/io/File;
5 33 3 i I
7 28 4 r Ljava/io/BufferedReader;
8 28 5 s Ljava/lang/String;
12 28 6 elements [Ljava/lang/String;
17 28 7 b [B
18 28 8 bb Ljava/nio/ByteBuffer;
20 27 9 j I
30 31 4 e Ljava/lang/Exception;
Exception table:
from to target type
6 10 29 Class java.io.IOException
11 13 29 Class java.io.IOException
14 28 29 Class java.io.IOException
6 10 29 Class java.lang.RuntimeException
11 13 29 Class java.lang.RuntimeException
14 28 29 Class java.lang.RuntimeException
Signature: (Ljava/io/File;)Ljava/util/Map<Ljava/lang/String;Ljava/util/BitSet;>;
MethodParameters:
Name Flags
sysPath
static java.util.Map<java.lang.String, java.lang.String> readUEvent(java.io.File);
descriptor: (Ljava/io/File;)Ljava/util/Map;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: new java.io.File
dup
aload 0
ldc "device/uevent"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 2
start local 2 2: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 2
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 3
start local 3 3: goto 7
start local 4 4: StackMap locals: java.io.File java.util.Map java.io.File java.io.BufferedReader java.lang.String
StackMap stack:
aload 4
ldc "="
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 5
start local 5 5: iload 5
iflt 7
6: aload 1
aload 4
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
aload 4
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 7: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 4
start local 4 8: ifnonnull 4
end local 4 end local 3 9: goto 11
StackMap locals: java.io.File java.util.Map java.io.File
StackMap stack: java.io.IOException
10: pop
11: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 sysPath Ljava/io/File;
1 12 1 uevent Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 12 2 f Ljava/io/File;
3 9 3 r Ljava/io/BufferedReader;
4 7 4 line Ljava/lang/String;
8 9 4 line Ljava/lang/String;
5 7 5 i I
Exception table:
from to target type
2 9 10 Class java.io.IOException
Signature: (Ljava/io/File;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
sysPath
static void triggerUdevNotification(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=9, args_size=1
start local 0 0: new java.io.File
dup
new java.lang.StringBuilder
dup
ldc "/sys/class/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 1
start local 1 1: ldc "change"
invokevirtual java.lang.String.getBytes:()[B
astore 2
start local 2 2: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 14
StackMap locals: java.lang.String java.io.File[] byte[] top int int java.io.File[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: new java.io.File
dup
aload 3
ldc "uevent"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 7
start local 7 5: aload 7
invokevirtual java.io.File.exists:()Z
ifeq 13
6: aload 7
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aload 2
invokestatic com.sun.glass.ui.monocle.SysFS.write:(Ljava/lang/String;[B)V
7: goto 13
StackMap locals: java.lang.String java.io.File[] byte[] java.io.File int int java.io.File[] java.io.File
StackMap stack: java.io.IOException
8: astore 8
start local 8 9: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Udev: Failed to write to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc " Check that you have permission to access input devices"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: aload 8
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
ldc "Permission denied"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 13
12: aload 8
invokevirtual java.io.IOException.printStackTrace:()V
end local 8 end local 7 end local 3 13: StackMap locals: java.lang.String java.io.File[] byte[] top int int java.io.File[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
14: iload 4
iload 5
if_icmplt 3
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 sysClass Ljava/lang/String;
1 16 1 devices [Ljava/io/File;
2 16 2 action [B
4 13 3 device Ljava/io/File;
5 13 7 uevent Ljava/io/File;
9 13 8 e Ljava/io/IOException;
Exception table:
from to target type
6 7 8 Class java.io.IOException
MethodParameters:
Name Flags
sysClass
static void write(java.lang.String, byte[]);
descriptor: (Ljava/lang/String;[B)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new java.io.FileOutputStream
dup
aload 0
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
aload 1
invokevirtual java.io.FileOutputStream.write:([B)V
2: goto 6
StackMap locals: java.lang.String byte[] java.io.FileOutputStream
StackMap stack: java.lang.Throwable
3: astore 3
4: aload 2
invokevirtual java.io.FileOutputStream.close:()V
5: aload 3
athrow
6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.FileOutputStream.close:()V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 location Ljava/lang/String;
0 8 1 value [B
1 8 2 out Ljava/io/FileOutputStream;
Exception table:
from to target type
1 3 3 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
location
value
static void write(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.String.getBytes:()[B
invokestatic com.sun.glass.ui.monocle.SysFS.write:(Ljava/lang/String;[B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 location Ljava/lang/String;
0 2 1 value Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
location
value
static int[] readInts(java.lang.String, int);
descriptor: (Ljava/lang/String;I)[I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 0
invokespecial java.io.FileReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 2
start local 2 1: aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 3
start local 3 2: aload 2
invokevirtual java.io.BufferedReader.close:()V
3: aload 3
ifnull 15
aload 3
invokevirtual java.lang.String.length:()I
ifle 15
4: aload 3
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 4
start local 4 5: iload 1
ifeq 6
aload 4
arraylength
iload 1
if_icmpne 15
6: StackMap locals: java.io.BufferedReader java.lang.String java.lang.String[]
StackMap stack:
aload 4
arraylength
newarray 10
astore 5
start local 5 7: iconst_0
istore 6
start local 6 8: goto 11
9: StackMap locals: int[] int
StackMap stack:
aload 5
iload 6
aload 4
iload 6
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
iastore
10: iinc 6 1
StackMap locals:
StackMap stack:
11: iload 6
aload 5
arraylength
if_icmplt 9
end local 6 12: aload 5
13: areturn
end local 5 14: StackMap locals: java.lang.String int java.io.BufferedReader java.lang.String java.lang.String[]
StackMap stack: java.lang.NumberFormatException
pop
end local 4 15: StackMap locals:
StackMap stack:
iload 1
ifeq 20
16: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Expected to find "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
17: ldc " integers in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " but found '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
iconst_0
newarray 10
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 location Ljava/lang/String;
0 21 1 expectedLength I
1 21 2 r Ljava/io/BufferedReader;
2 21 3 s Ljava/lang/String;
5 15 4 elements [Ljava/lang/String;
7 14 5 xs [I
8 12 6 i I
Exception table:
from to target type
5 13 14 Class java.lang.NumberFormatException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
location
expectedLength
static int readInt(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 0
invokespecial java.io.FileReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 1
start local 1 1: aload 1
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 2
start local 2 2: aload 1
invokevirtual java.io.BufferedReader.close:()V
3: aload 2
ifnull 6
aload 2
invokevirtual java.lang.String.length:()I
ifle 6
4: aload 2
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
5: ireturn
6: StackMap locals: java.io.BufferedReader java.lang.String
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " does not contain an integer"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
8: new java.io.IOException
dup
9: new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " does not contain an integer ('"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 location Ljava/lang/String;
1 11 1 r Ljava/io/BufferedReader;
2 11 2 s Ljava/lang/String;
Exception table:
from to target type
3 5 7 Class java.lang.NumberFormatException
6 7 7 Class java.lang.NumberFormatException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
location
}
SourceFile: "SysFS.java"