public class org.graalvm.util.TypedDataOutputStream extends java.io.DataOutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.util.TypedDataOutputStream
super_class: java.io.DataOutputStream
{
public static boolean isValueSupported(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 1
start local 1 3: aload 1
ldc Ljava/lang/Boolean;
if_acmpeq 14
4: aload 1
ldc Ljava/lang/Byte;
if_acmpeq 14
5: aload 1
ldc Ljava/lang/Short;
if_acmpeq 14
6: aload 1
ldc Ljava/lang/Character;
if_acmpeq 14
7: aload 1
ldc Ljava/lang/Integer;
if_acmpeq 14
8: aload 1
ldc Ljava/lang/Long;
if_acmpeq 14
9: aload 1
ldc Ljava/lang/Float;
if_acmpeq 14
10: aload 1
ldc Ljava/lang/Double;
if_acmpeq 14
11: aload 1
ldc Ljava/lang/String;
if_acmpeq 14
12: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isEnum:()Z
ifne 14
13: iconst_0
ireturn
StackMap locals: java.lang.Class
StackMap stack:
14: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 value Ljava/lang/Object;
3 15 1 valueClass Ljava/lang/Class<*>;
MethodParameters:
Name Flags
value
public void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/util/TypedDataOutputStream;
0 2 1 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
out
public void writeTypedValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
start local 2 1: aload 2
ldc Ljava/lang/Boolean;
if_acmpne 5
2: aload 0
bipush 90
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
3: aload 0
aload 1
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual org.graalvm.util.TypedDataOutputStream.writeBoolean:(Z)V
4: goto 40
StackMap locals: java.lang.Class
StackMap stack:
5: aload 2
ldc Ljava/lang/Byte;
if_acmpne 9
6: aload 0
bipush 66
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
7: aload 0
aload 1
checkcast java.lang.Byte
invokevirtual java.lang.Byte.byteValue:()B
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
8: goto 40
StackMap locals:
StackMap stack:
9: aload 2
ldc Ljava/lang/Short;
if_acmpne 13
10: aload 0
bipush 83
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
11: aload 0
aload 1
checkcast java.lang.Short
invokevirtual java.lang.Short.shortValue:()S
invokevirtual org.graalvm.util.TypedDataOutputStream.writeShort:(I)V
12: goto 40
StackMap locals:
StackMap stack:
13: aload 2
ldc Ljava/lang/Character;
if_acmpne 17
14: aload 0
bipush 67
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
15: aload 0
aload 1
checkcast java.lang.Character
invokevirtual java.lang.Character.charValue:()C
invokevirtual org.graalvm.util.TypedDataOutputStream.writeChar:(I)V
16: goto 40
StackMap locals:
StackMap stack:
17: aload 2
ldc Ljava/lang/Integer;
if_acmpne 21
18: aload 0
bipush 73
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
19: aload 0
aload 1
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual org.graalvm.util.TypedDataOutputStream.writeInt:(I)V
20: goto 40
StackMap locals:
StackMap stack:
21: aload 2
ldc Ljava/lang/Long;
if_acmpne 25
22: aload 0
bipush 74
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
23: aload 0
aload 1
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
invokevirtual org.graalvm.util.TypedDataOutputStream.writeLong:(J)V
24: goto 40
StackMap locals:
StackMap stack:
25: aload 2
ldc Ljava/lang/Float;
if_acmpne 29
26: aload 0
bipush 70
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
27: aload 0
aload 1
checkcast java.lang.Float
invokevirtual java.lang.Float.floatValue:()F
invokevirtual org.graalvm.util.TypedDataOutputStream.writeFloat:(F)V
28: goto 40
StackMap locals:
StackMap stack:
29: aload 2
ldc Ljava/lang/Double;
if_acmpne 33
30: aload 0
bipush 68
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
31: aload 0
aload 1
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
invokevirtual org.graalvm.util.TypedDataOutputStream.writeDouble:(D)V
32: goto 40
StackMap locals:
StackMap stack:
33: aload 2
ldc Ljava/lang/String;
if_acmpne 36
34: aload 0
aload 1
checkcast java.lang.String
invokevirtual org.graalvm.util.TypedDataOutputStream.writeStringValue:(Ljava/lang/String;)V
35: goto 40
StackMap locals:
StackMap stack:
36: aload 2
invokevirtual java.lang.Class.isEnum:()Z
ifeq 39
37: aload 0
aload 1
checkcast java.lang.Enum
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
invokevirtual org.graalvm.util.TypedDataOutputStream.writeStringValue:(Ljava/lang/String;)V
38: goto 40
39: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Unsupported type: Value: %s, Value type: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
40: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lorg/graalvm/util/TypedDataOutputStream;
0 41 1 value Ljava/lang/Object;
1 41 2 valueClz Ljava/lang/Class<*>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
private void writeStringValue(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
bipush 85
invokevirtual org.graalvm.util.TypedDataOutputStream.writeByte:(I)V
1: aload 1
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 2
start local 2 2: aload 0
aload 2
arraylength
invokevirtual org.graalvm.util.TypedDataOutputStream.writeInt:(I)V
3: aload 0
aload 2
invokevirtual org.graalvm.util.TypedDataOutputStream.write:([B)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/util/TypedDataOutputStream;
0 5 1 value Ljava/lang/String;
2 5 2 bytes [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
}
SourceFile: "TypedDataOutputStream.java"