Saturday, 9 March 2013

readDouble()


readDouble()


See Also: readInt(), java.lang.Float.intBitsToFloat(int)
readDouble()
Declaration:
public final double readDouble()
throws IOException
Description:
See the general contract of the readDouble method of DataInput.
Bytes for this operation are read from the contained input stream.
Specified By: readDouble in interface DataInput
Returns: the next eight bytes of this input stream, interpreted as a double.
Throws:
EOFException - if this input stream reaches the end before reading eight bytes.
IOException - if an I/O error occurs.
Since: CLDC 1.1
See Also: readLong(), java.lang.Double.longBitsToDouble(long)
readUTF()
Declaration:
public final java.lang.String readUTF()
throws IOException
Description:
See the general contract of the readUTF method of DataInput.
Bytes for this operation are read from the contained input stream.
Specified By: readUTF in interface DataInput
Returns: a Unicode string.
Throws:
EOFException - if this input stream reaches the end before reading all the bytes.
IOException - if an I/O error occurs.
See Also: readUTF(DataInput)
readUTF(DataInput)
Declaration:
public static final java.lang.String readUTF(java.io.DataInput in)
throws IOException
Description:
Reads from the stream in a representation of a Unicode character string encoded in Java modified UTF-8
format; this string of characters is then returned as a String. The details of the modified UTF-8
representation are exactly the same as for the readUTF method of DataInput.
Parameters:
in - a data input stream.
Returns: a Unicode string.

Throws:
EOFException - if the input stream reaches the end before all the bytes.
IOException - if an I/O error occurs.
UTFDataFormatException - if the bytes do not represent a valid UTF-8 encoding of a Unicode
string.
See Also: readUnsignedShort()
skip(long)
Declaration:
public long skip(long n)
throws IOException
Description:
Skips over and discards n bytes of data from the input stream. The skip method may, for a variety of
reasons, end up skipping over some smaller number of bytes, possibly 0. The actual number of bytes
skipped is returned.
This method simply performs in.skip(n).
Overrides: skip in class InputStream
Parameters:
n - the number of bytes to be skipped.
Returns: the actual number of bytes skipped.
Throws:
IOException - if an I/O error occurs.
available()
Declaration:
public int available()
throws IOException
Description:
Returns the number of bytes that can be read from this input stream without blocking.
This method simply performs in.available() and returns the result.
Overrides: available in class InputStream
Returns: the number of bytes that can be read from the input stream without blocking.
Throws:
IOException - if an I/O error occurs.
close()
Declaration:
public void close()
throws IOException
Description:
Closes this input stream and releases any system resources associated with the stream. This method simply
performs in.close().
Overrides: close in class InputStream


No comments:

Post a Comment