import java io public class java_io_DataOutputSt ream implements DataO

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import java.io.*;
public class java_io_DataOutputStream implements DataOutput {
public DataOutputStream d = null;
public java_io_DataOutputStream(OutputStream out) {
d = new DataOutputStream(out);
}
public java_io_DataOutputStream(java_io_DataOutputStream out) {
d = new DataOutputStream(out.d);
}
public void write(byte[] b) throws IOException {
System.out.println("write(byte[" + b.length + "])");
for (int i = 0; i < b.length; ++i)
System.out.print(String.format(" %02X", b[i]));
System.out.println();
d.write(b);
}
public void close() throws IOException {
d.close();
}
public void flush() throws IOException {
d.flush();
}
public void write(byte[] b, int off, int len) throws IOException {
d.write(b, off, len);
}
public void write(int b) throws IOException {
d.write(b);
}
public final void writeBoolean(boolean v) throws IOException {
d.writeBoolean(v);
}
public final void writeByte(int v) throws IOException {
d.writeByte(v);
}
public final void writeBytes(String v) throws IOException {
d.writeBytes(v);
}
public final void writeChar(int v) throws IOException {
d.writeChar(v);
}
public final void writeChars(String s) throws IOException {
d.writeChars(s);
}
public final void writeDouble(double v) throws IOException {
d.writeDouble(v);
}
public final void writeFloat(float v) throws IOException {
d.writeFloat(v);
}
public final void writeInt(int v) throws IOException {
d.writeInt(v);
}
public final void writeLong(long v) throws IOException {
d.writeLong(v);
}
public final void writeShort(int v) throws IOException {
d.writeShort(v);
}
public final void writeUTF(String str) throws IOException {
d.writeUTF(str);
}
}