THE PACKAGE JAVA.IO
java.io.DataInput
22.1
If an exception is thrown from this method, then it may be that some but not
all bytes of
b
 in positions
off
 through
off+len 1
 have been updated with data
from the input stream.
22.1.3
public int skipBytes(int n) throws IOException
The general contract of
skipBytes
 is that it makes an attempt to skip over
n
 bytes
of data from the input stream, discarding the skipped bytes. However, it may skip
over some smaller number of bytes, possibly zero. This may result from any of a
number of conditions; reaching end of file before
n
 bytes have been skipped is
only one possibility. This method never throws an
EOFException
. The actual
number of bytes skipped is returned.
22.1.4
public boolean readBoolean() throws IOException;
The general contract of
readBoolean
 is that it reads one input byte and returns
true
 if that byte is nonzero,
false
 if that byte is zero.
This method is suitable for reading the byte written by the
writeBoolean
method of interface
DataOutput
 ( 22.2.4).
22.1.5
public byte readByte() throws IOException
The general contract of
readByte
 is that it reads and returns one input byte. The
byte is treated as a signed value in the range
 128
 through
127
, inclusive.
This method is suitable for reading the byte written by the
writeByte
 method
of interface
DataOutput
 ( 22.2.5).
22.1.6
public int readUnsignedByte() throws IOException
The general contract of
readUnsignedByte
 is that it reads one input byte, zero 
extends it to type
int
, and returns the result, which is therefore in the range
0
through
255
.
This method is suitable for reading the byte written by the
writeByte
 method
of interface
DataOutput
 ( 22.2.5) if the argument to
writeByte
 was intended to
be a value in the range
0
 through
255
.
669






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

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