1、public DataOutputStream(OutputStream out);创建一个新的数据输出流,将数据写入指定基础输出流。
2、public synchronized void write(int b) throws IOException;将指定的字节写入此字节输出流。
3、public synchronized void write(byte b[], int off, int 造婷用痃lenthrows IOException;将指定字节数组中从偏移量off开始的len个字节写入此字节数组输出流。
4、DataOutputStream提供了三种老揉孟阼写入字符串的方法。public final void writeBytes(String s) throws IOException;
5、public final void writeChars(String s) throws IOException
6、public final void writeUTF(String str);