看看APIvoid write(byte[] b)
          Writes b.length bytes from the specified byte array to this file, starting at the current file pointer.
 void write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to this file.
 void write(int b)
          Writes the specified byte to this file.
 void writeBoolean(boolean v)
          Writes a boolean to the file as a one-byte value.
 void writeByte(int v)
          Writes a byte to the file as a one-byte value.
 void writeBytes(String s)
          Writes the string to the file as a sequence of bytes.
 void writeChar(int v)
          Writes a char to the file as a two-byte value, high byte first.
 void writeChars(String s)
          Writes a string to the file as a sequence of characters.
 void writeDouble(double v)
          Converts the double argument to a long using the doubleToLongBits method in class Double, and then writes that long value to the file as an eight-byte quantity, high byte first.
 void writeFloat(float v)
          Converts the float argument to an int using the floatToIntBits method in class Float, and then writes that int value to the file as a four-byte quantity, high byte first.
 void writeInt(int v)
          Writes an int to the file as four bytes, high byte first.
 void writeLong(long v)
          Writes a long to the file as eight bytes, high byte first.
 void writeShort(int v)
          Writes a short to the file as two bytes, high byte first.
 void writeUTF(String str)
          Writes a string to the file using UTF-8 encoding in a machine-independent manner.