writeInt(int)
Declaration:public final void writeInt(int v)
throws IOException
Description:
Writes an int to the underlying output stream as four bytes, high byte first.
Specified By: writeInt in interface DataOutput
Parameters:
v - an int to be written.
Throws:
IOException - if an I/O error occurs.
writeLong(long)
Declaration:
public final void writeLong(long v)
throws IOException
Description:
Writes a long to the underlying output stream as eight bytes, high byte first.
Specified By: writeLong in interface DataOutput
Parameters:
v - a long to be written.
Throws:
IOException - if an I/O error occurs.
writeFloat(float)
Declaration:
public final void writeFloat(float v)
throws IOException
Description:
Converts the float argument to an int using the floatToIntBits method in class Float, and then
writes that int value to the underlying output stream as a 4-byte quantity, high byte first.
Specified By: writeFloat in interface DataOutput
Parameters:
v - a float value to be written.
Throws:
IOException - if an I/O error occurs.
writeDouble(double)
40
See Also: java.lang.Float.floatToIntBits(float)
writeDouble(double)
Declaration:
public final void writeDouble(double v)
throws IOException
Description:
Converts the double argument to a long using the doubleToLongBits method in class Double, and
then writes that long value to the underlying output stream as an 8-byte quantity, high byte first.
Specified By: writeDouble in interface DataOutput
Parameters:
v - a double value to be written.
Throws:
IOException - if an I/O error occurs.
Since: CLDC 1.1
See Also: java.lang.Double.doubleToLongBits(double)
writeChars(String)
Declaration:
public final void writeChars(java.lang.String s)
throws IOException
Description:
Writes a string to the underlying output stream as a sequence of characters. Each character is written to the
data output stream as if by the writeChar method.
Specified By: writeChars in interface DataOutput
Parameters:
s - a String value to be written.
Throws:
IOException - if an I/O error occurs.
No comments:
Post a Comment