3 import java.io.IOException;
4 import java.io.InputStream;
5 import java.io.OutputStream;
9 * OutputStream
\82Ö
\83f
\81[
\83^
\82ð
\8f\91\82«
\8d\9e\82Þ
11 public static void writeInt(OutputStream os, int i) throws IOException {
12 //
\83\8a\83g
\83\8b\83G
\83\93\83f
\83B
\83A
\83\93
13 os.write((i >> 0) & 0xff);
14 os.write((i >> 8) & 0xff);
15 os.write((i >> 16) & 0xff);
16 os.write((i >> 24) & 0xff);
18 public static int readInt(InputStream is) throws IOException{
19 int num = (is.read() & 0xff) +
20 (is.read() & 0xff) << 8+
21 (is.read() & 0xff) << 16+
22 (is.read() & 0xff) << 24;