| From class DataOutput
                
                  
                    | Unit | writeBoolean(v: Boolean)
                         Writes a booleanvalue to this output stream. If the argumentvistrue, the value(byte)1is written; ifvisfalse, the value(byte)0is written. The byte written by this method may be read by thereadBooleanmethod of interfaceDataInput, which will then return abooleanequal tov. |  
                    | Unit | writeByte(v: Int)
                         Writes to the output stream the eight low- order bits of the argument v. The 24 high-order bits ofvare ignored. (This means thatwriteBytedoes exactly the same thing aswritefor an integer argument.) The byte written by this method may be read by thereadBytemethod of interfaceDataInput, which will then return abyteequal to(byte)v. |  
                    | Unit | writeBytes(s: String!)
                         Writes a string to the output stream. For every character in the string s, taken in order, one byte is written to the output stream. Ifsisnull, aNullPointerExceptionis thrown.  If s.lengthis zero, then no bytes are written. Otherwise, the characters[0]is written first, thens[1], and so on; the last character written iss[s.length-1]. For each character, one byte is written, the low-order byte, in exactly the manner of thewriteBytemethod . The high-order eight bits of each character in the string are ignored. |  
                    | Unit | writeChar(v: Int)
                         Writes a charvalue, which is comprised of two bytes, to the output stream. The byte values to be written, in the order shown, are: <code>(byte)(0xff & (v >> 8))
  (byte)(0xff & v)
  </code>  The bytes written by this method may be read by the readCharmethod of interfaceDataInput, which will then return acharequal to(char)v. |  
                    | Unit | writeChars(s: String!)
                         Writes every character in the string s, to the output stream, in order, two bytes per character. Ifsisnull, aNullPointerExceptionis thrown. Ifs.lengthis zero, then no characters are written. Otherwise, the characters[0]is written first, thens[1], and so on; the last character written iss[s.length-1]. For each character, two bytes are actually written, high-order byte first, in exactly the manner of thewriteCharmethod. |  
                    | Unit | writeDouble(v: Double)
                         Writes a doublevalue, which is comprised of eight bytes, to the output stream. It does this as if it first converts thisdoublevalue to alongin exactly the manner of theDouble.doubleToLongBitsmethod and then writes thelongvalue in exactly the manner of thewriteLongmethod. The bytes written by this method may be read by thereadDoublemethod of interfaceDataInput, which will then return adoubleequal tov. |  
                    | Unit | writeFloat(v: Float)
                         Writes a floatvalue, which is comprised of four bytes, to the output stream. It does this as if it first converts thisfloatvalue to anintin exactly the manner of theFloat.floatToIntBitsmethod and then writes theintvalue in exactly the manner of thewriteIntmethod. The bytes written by this method may be read by thereadFloatmethod of interfaceDataInput, which will then return afloatequal tov. |  
                    | Unit | writeInt(v: Int)
                         Writes an intvalue, which is comprised of four bytes, to the output stream. The byte values to be written, in the order shown, are: <code>(byte)(0xff & (v >> 24))
  (byte)(0xff & (v >> 16))
  (byte)(0xff & (v >>  8))
  (byte)(0xff & v)
  </code>  The bytes written by this method may be read by the readIntmethod of interfaceDataInput, which will then return anintequal tov. |  
                    | Unit | writeLong(v: Long)
                         Writes a longvalue, which is comprised of eight bytes, to the output stream. The byte values to be written, in the order shown, are: <code>(byte)(0xff & (v >> 56))
  (byte)(0xff & (v >> 48))
  (byte)(0xff & (v >> 40))
  (byte)(0xff & (v >> 32))
  (byte)(0xff & (v >> 24))
  (byte)(0xff & (v >> 16))
  (byte)(0xff & (v >>  8))
  (byte)(0xff & v)
  </code>  The bytes written by this method may be read by the readLongmethod of interfaceDataInput, which will then return alongequal tov. |  
                    | Unit | writeShort(v: Int)
                         Writes two bytes to the output stream to represent the value of the argument. The byte values to be written, in the order shown, are: 
                           <code>(byte)(0xff & (v >> 8))
  (byte)(0xff & v)
  </code>  The bytes written by this method may be read by the readShortmethod of interfaceDataInput, which will then return ashortequal to(short)v. |  
                    | Unit | writeUTF(s: String!)
                         Writes two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the string s. Ifsisnull, aNullPointerExceptionis thrown. Each character in the stringsis converted to a group of one, two, or three bytes, depending on the value of the character.  If a character cis in the range\u0001through\u007f, it is represented by one byte: (byte)c   If a character cis\u0000or is in the range\u0080through\u07ff, then it is represented by two bytes, to be written in the order shown: <code>(byte)(0xc0 | (0x1f & (c >> 6)))
  (byte)(0x80 | (0x3f & c))
  </code>  If a character cis in the range\u0800throughuffff, then it is represented by three bytes, to be written in the order shown: <code>(byte)(0xe0 | (0x0f & (c >> 12)))
  (byte)(0x80 | (0x3f & (c >>  6)))
  (byte)(0x80 | (0x3f & c))
  </code>  First, the total number of bytes needed to represent all the characters of sis calculated. If this number is larger than65535, then aUTFDataFormatExceptionis thrown. Otherwise, this length is written to the output stream in exactly the manner of thewriteShortmethod; after this, the one-, two-, or three-byte representation of each character in the stringsis written.  The bytes written by this method may be read by the readUTFmethod of interfaceDataInput, which will then return aStringequal tos. |  |