public class java.io.DataOutputStream extends java.io.FilterOutputStream implements java.io.DataOutput
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.io.DataOutputStream
super_class: java.io.FilterOutputStream
{
protected int written;
descriptor: I
flags: (0x0004) ACC_PROTECTED
private byte[] bytearr;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] writeBuffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
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.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
aconst_null
putfield java.io.DataOutputStream.bytearr:[B
2: aload 0
bipush 8
newarray 8
putfield java.io.DataOutputStream.writeBuffer:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/DataOutputStream;
0 4 1 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
out
private void incCount(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.written:I
iload 1
iadd
istore 2
start local 2 1: iload 2
ifge 3
2: ldc 2147483647
istore 2
3: StackMap locals: int
StackMap stack:
aload 0
iload 2
putfield java.io.DataOutputStream.written:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/DataOutputStream;
0 5 1 value I
1 5 2 temp I
MethodParameters:
Name Flags
value
public synchronized void write(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
1: aload 0
iconst_1
invokevirtual java.io.DataOutputStream.incCount:(I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/DataOutputStream;
0 3 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public synchronized void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
1: aload 0
iload 3
invokevirtual java.io.DataOutputStream.incCount:(I)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/DataOutputStream;
0 3 1 b [B
0 3 2 off I
0 3 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/DataOutputStream;
Exceptions:
throws java.io.IOException
public final void writeBoolean(boolean);
descriptor: (Z)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack: java.io.OutputStream
1: iconst_0
StackMap locals: java.io.DataOutputStream int
StackMap stack: java.io.OutputStream int
2: invokevirtual java.io.OutputStream.write:(I)V
3: aload 0
iconst_1
invokevirtual java.io.DataOutputStream.incCount:(I)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/DataOutputStream;
0 5 1 v Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeByte(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
1: aload 0
iconst_1
invokevirtual java.io.DataOutputStream.incCount:(I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/DataOutputStream;
0 3 1 v I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeShort(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
bipush 8
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
1: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
iconst_0
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
2: aload 0
iconst_2
invokevirtual java.io.DataOutputStream.incCount:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/DataOutputStream;
0 4 1 v I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeChar(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
bipush 8
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
1: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
iconst_0
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
2: aload 0
iconst_2
invokevirtual java.io.DataOutputStream.incCount:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/DataOutputStream;
0 4 1 v I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeInt(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
bipush 24
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
1: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
bipush 16
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
2: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
bipush 8
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
3: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 1
iconst_0
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
4: aload 0
iconst_4
invokevirtual java.io.DataOutputStream.incCount:(I)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/DataOutputStream;
0 6 1 v I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeLong(long);
descriptor: (J)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
iconst_0
lload 1
bipush 56
lushr
l2i
i2b
bastore
1: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
iconst_1
lload 1
bipush 48
lushr
l2i
i2b
bastore
2: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
iconst_2
lload 1
bipush 40
lushr
l2i
i2b
bastore
3: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
iconst_3
lload 1
bipush 32
lushr
l2i
i2b
bastore
4: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
iconst_4
lload 1
bipush 24
lushr
l2i
i2b
bastore
5: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
iconst_5
lload 1
bipush 16
lushr
l2i
i2b
bastore
6: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
bipush 6
lload 1
bipush 8
lushr
l2i
i2b
bastore
7: aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
bipush 7
lload 1
iconst_0
lushr
l2i
i2b
bastore
8: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
aload 0
getfield java.io.DataOutputStream.writeBuffer:[B
iconst_0
bipush 8
invokevirtual java.io.OutputStream.write:([BII)V
9: aload 0
bipush 8
invokevirtual java.io.DataOutputStream.incCount:(I)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/io/DataOutputStream;
0 11 1 v J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeFloat(float);
descriptor: (F)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
fload 1
invokestatic java.lang.Float.floatToIntBits:(F)I
invokevirtual java.io.DataOutputStream.writeInt:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/DataOutputStream;
0 2 1 v F
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeDouble(double);
descriptor: (D)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dload 1
invokestatic java.lang.Double.doubleToLongBits:(D)J
invokevirtual java.io.DataOutputStream.writeLong:(J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/DataOutputStream;
0 2 1 v D
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
v
public final void writeBytes(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: int int
StackMap stack:
aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
i2b
invokevirtual java.io.OutputStream.write:(I)V
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 2
if_icmplt 3
end local 3 6: aload 0
iload 2
invokevirtual java.io.DataOutputStream.incCount:(I)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/io/DataOutputStream;
0 8 1 s Ljava/lang/String;
1 8 2 len I
2 6 3 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
public final void writeChars(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 4
bipush 8
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
5: aload 0
getfield java.io.DataOutputStream.out:Ljava/io/OutputStream;
iload 4
iconst_0
iushr
sipush 255
iand
invokevirtual java.io.OutputStream.write:(I)V
end local 4 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 2
if_icmplt 3
end local 3 8: aload 0
iload 2
iconst_2
imul
invokevirtual java.io.DataOutputStream.incCount:(I)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/DataOutputStream;
0 10 1 s Ljava/lang/String;
1 10 2 len I
2 8 3 i I
4 6 4 v I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
public final void writeUTF(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokestatic java.io.DataOutputStream.writeUTF:(Ljava/lang/String;Ljava/io/DataOutput;)I
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/DataOutputStream;
0 2 1 str Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
static int writeUTF(java.lang.String, java.io.DataOutput);
descriptor: (Ljava/lang/String;Ljava/io/DataOutput;)I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iload 2
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 10
4: StackMap locals: int int int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 5: iload 5
sipush 128
if_icmpge 6
iload 5
ifne 9
6: StackMap locals: int
StackMap stack:
iload 3
iload 5
sipush 2048
if_icmplt 7
iconst_2
goto 8
StackMap locals:
StackMap stack: int
7: iconst_1
StackMap locals: java.lang.String java.io.DataOutput int int int int
StackMap stack: int int
8: iadd
istore 3
end local 5 9: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 2
if_icmplt 4
end local 4 11: iload 3
ldc 65535
if_icmpgt 12
iload 3
iload 2
if_icmpge 13
12: StackMap locals:
StackMap stack:
new java.io.UTFDataFormatException
dup
aload 0
iload 3
invokestatic java.io.DataOutputStream.tooLongMsg:(Ljava/lang/String;I)Ljava/lang/String;
invokespecial java.io.UTFDataFormatException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 1
instanceof java.io.DataOutputStream
ifeq 19
14: aload 1
checkcast java.io.DataOutputStream
astore 5
start local 5 15: aload 5
getfield java.io.DataOutputStream.bytearr:[B
ifnull 16
aload 5
getfield java.io.DataOutputStream.bytearr:[B
arraylength
iload 3
iconst_2
iadd
if_icmpge 17
16: StackMap locals: java.lang.String java.io.DataOutput int int top java.io.DataOutputStream
StackMap stack:
aload 5
iload 3
iconst_2
imul
iconst_2
iadd
newarray 8
putfield java.io.DataOutputStream.bytearr:[B
17: StackMap locals:
StackMap stack:
aload 5
getfield java.io.DataOutputStream.bytearr:[B
astore 4
end local 5 start local 4 18: goto 20
end local 4 19: StackMap locals: java.lang.String java.io.DataOutput int int
StackMap stack:
iload 3
iconst_2
iadd
newarray 8
astore 4
start local 4 20: StackMap locals: byte[]
StackMap stack:
iconst_0
istore 5
start local 5 21: aload 4
iload 5
iinc 5 1
iload 3
bipush 8
iushr
sipush 255
iand
i2b
bastore
22: aload 4
iload 5
iinc 5 1
iload 3
iconst_0
iushr
sipush 255
iand
i2b
bastore
23: iconst_0
istore 6
start local 6 24: iconst_0
istore 6
goto 29
25: StackMap locals: int int
StackMap stack:
aload 0
iload 6
invokevirtual java.lang.String.charAt:(I)C
istore 7
start local 7 26: iload 7
sipush 128
if_icmpge 43
iload 7
ifne 27
goto 43
27: StackMap locals: int
StackMap stack:
aload 4
iload 5
iinc 5 1
iload 7
i2b
bastore
end local 7 28: iinc 6 1
StackMap locals:
StackMap stack:
29: iload 6
iload 2
if_icmplt 25
30: goto 43
31: StackMap locals:
StackMap stack:
aload 0
iload 6
invokevirtual java.lang.String.charAt:(I)C
istore 7
start local 7 32: iload 7
sipush 128
if_icmpge 35
iload 7
ifeq 35
33: aload 4
iload 5
iinc 5 1
iload 7
i2b
bastore
34: goto 42
StackMap locals: int
StackMap stack:
35: iload 7
sipush 2048
if_icmplt 40
36: aload 4
iload 5
iinc 5 1
sipush 224
iload 7
bipush 12
ishr
bipush 15
iand
ior
i2b
bastore
37: aload 4
iload 5
iinc 5 1
sipush 128
iload 7
bipush 6
ishr
bipush 63
iand
ior
i2b
bastore
38: aload 4
iload 5
iinc 5 1
sipush 128
iload 7
iconst_0
ishr
bipush 63
iand
ior
i2b
bastore
39: goto 42
40: StackMap locals:
StackMap stack:
aload 4
iload 5
iinc 5 1
sipush 192
iload 7
bipush 6
ishr
bipush 31
iand
ior
i2b
bastore
41: aload 4
iload 5
iinc 5 1
sipush 128
iload 7
iconst_0
ishr
bipush 63
iand
ior
i2b
bastore
end local 7 42: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
43: iload 6
iload 2
if_icmplt 31
44: aload 1
aload 4
iconst_0
iload 3
iconst_2
iadd
invokeinterface java.io.DataOutput.write:([BII)V
45: iload 3
iconst_2
iadd
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 str Ljava/lang/String;
0 46 1 out Ljava/io/DataOutput;
1 46 2 strlen I
2 46 3 utflen I
3 11 4 i I
5 9 5 c I
18 19 4 bytearr [B
20 46 4 bytearr [B
15 18 5 dos Ljava/io/DataOutputStream;
21 46 5 count I
24 46 6 i I
26 28 7 c I
32 42 7 c I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
out
private static java.lang.String tooLongMsg(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: aload 0
iconst_0
bipush 8
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 2: aload 0
iload 2
bipush 8
isub
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 3: iload 2
i2l
iload 1
iload 2
isub
invokestatic java.lang.Integer.toUnsignedLong:(I)J
ladd
lstore 5
start local 5 4: new java.lang.StringBuilder
dup
ldc "encoded string ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
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;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ") too long: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: lload 5
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 s Ljava/lang/String;
0 7 1 bits32 I
1 7 2 slen I
2 7 3 head Ljava/lang/String;
3 7 4 tail Ljava/lang/String;
4 7 5 actualLength J
MethodParameters:
Name Flags
s
bits32
public final int size();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.DataOutputStream.written:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/DataOutputStream;
}
SourceFile: "DataOutputStream.java"