22.2
java.io.DataOutput
THE PACKAGE JAVA.IO
22.2.6
public void writeShort(int v) throws IOException
The general contract for
writeShort
 is that two bytes are written to the output
stream to represent the value of the argument. The byte values to be written, in the
order shown, are:
(byte)(0xff & (v >> 8))
(byte)(0xff & v)
The bytes written by this method may be read by the
readShort
 method of
interface
DataInput
 ( 22.1.7), which will then return a
short
 equal to
(short)v
.
22.2.7
public void writeChar(int v) throws IOException
The general contract for
writeChar
 is that two bytes are written to the output
stream to represent the value of the argument. The byte values to be written, in the
order shown, are:
(byte)(0xff & (v >> 8))
(byte)(0xff & v)
The bytes written by this method may be read by the
readChar
 method of
interface
DataInput
 ( 22.1.9), which will then return a
char
 equal to
(char)v
.
22.2.8
public void writeInt(int v) throws IOException
The general contract for
writeInt
 is that four bytes are written to the output
stream to represent the value of the argument. The byte values to be written, in the
order shown, are:
(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
readInt
 method of
interface
DataInput
 ( 22.1.10), which will then return an
int
 equal to
v
.
22.2.9
public void writeLong(long v) throws IOException
The general contract for
writeLong
 is that four bytes are written to the output
stream to represent the value of the argument. The byte values to be written, in the
order shown, are:
676






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