public void writeInt(int v)
throws IOException
Writes an int value, which is comprised of four bytes, to the output stream. The byte values to be written, in the order shown, are:
(byte)(0xff & (v >> 24))
(byte)(0xff & (v >> 16))
(byte)(0xff & (v >> 8))
(byte)(0xff & v)
throws IOException
Writes an int value, which is comprised of four bytes, to the output stream. The byte values to be written, in the order shown, are:
(byte)(0xff & (v >> 24))
(byte)(0xff & (v >> 16))
(byte)(0xff & (v >> 8))
(byte)(0xff & v)
把DataOutputStream改成OutputStreamWriter? 还是乱码!to OneNight:
还是没明白什么意思。你是想说四个字节的值分别是你写的那样吗?