THE PACKAGE JAVA.IO
java.io.DataOutput
22.2
(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)
The bytes written by this method may be read by the
readLong
method of
interface
DataInput
( 22.1.11), which will then return a
long
equal to
v
.
22.2.10
public void writeFloat(float v) throws IOException
The general contract for
writeFloat
is that four bytes are written to the output
stream to represent the value of the argument. It does this as if it first converts this
float
value to an
int
in exactly the manner of the
Float.floatToIntBits
method ( 20.9.22) and then writes the
int
value in exactly the manner of the
writeInt
method ( 22.2.8).
The bytes written by this method may be read by the
readFloat
method of
interface
DataInput
( 22.1.12), which will then return a
float
equal to
v
.
22.2.11
public void writeDouble(double v) throws IOException
The general contract for
writeDouble
is that eight bytes are written to the output
stream to represent the value of the argument. It does this as if it first converts this
double
value to a
long
in exactly the manner of the
Double.doubleToLongBits
method ( 20.10.21) and then writes the
long
value in exactly the manner of the
writeLong
method ( 22.2.9).
The bytes written by this method may be read by the
readDouble
method of
interface
DataInput
( 22.1.13), which will then return a
double
equal to
v
.
22.2.12
public void writeBytes(String s)
throws IOException, NullPointerException
The general contract for
writeBytes
is that for every character in the string
s
,
taken in order, one byte is written to the output stream.
If
s
is
null
, a
NullPointerException
is thrown.
If
s.length
is zero, then no bytes are written. Otherwise, the character
s[0]
is written first, then
s[1]
, and so on; the last character written is
s[s.length 1]
.
For each character, one byte is written, the low order byte, in exactly the manner
677
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved