Analogous to the readInt()
and readFloat()
methods are
the peekInt(
size)
and peekFloat(
type)
methods, that take the same arguments and also read an integer or a
floating-point number from the stream. Unlike their "read
"
counterparts, they don't modify the stream position. The next "real"
access (i.e. with one of the read
methods) to the stream will
continue as if the peek
methods have never been called.