Java-like data output stream.
More...
#include <DataOutputStream.h>
List of all members.
Public Member Functions |
| DataOutputStream (ostream &os) |
void | writeByte (int b) throw (IOException&) |
| Writes a byte into the stream.
|
void | writeString (const string &s) throw (IOException&) |
| Writes the string into the stream.
|
void | writeUnsignedInt (unsigned int v) throw (IOException&) |
| Writes a 32-bit unsigned integer into the stream.
|
void | writeInt (int v) throw (IOException&) |
| Writes a 32-bit integer into the stream.
|
void | writeUnsignedShort (unsigned short v) throw (IOException&) |
| Writes a 16-bit unsigned integer into the stream.
|
void | writeShort (short v) throw (IOException&) |
| Writes a 16-bit integer into the stream.
|
void | writeFloat (float v) throw (IOException&) |
| Writes a 32-bit single precision floating point number into the stream.
|
void | writeDouble (double v) throw (IOException&) |
| Writes a 64-bit double precision floating point number into the stream.
|
void | flush () throw (IOException&) |
| Flushes the stream.
|
Detailed Description
Java-like data output stream.
- Author:
- Peter Csizmadia
- Version:
- 0.5, 06/11/2009
- Since:
- GridRipper 0.4, 12/18/2006
Member Function Documentation
void gridripper::io::DataOutputStream::flush |
( |
|
) |
throw (IOException&) |
void gridripper::io::DataOutputStream::writeByte |
( |
int |
b |
) |
throw (IOException&) |
Writes a byte into the stream.
- Parameters:
-
void gridripper::io::DataOutputStream::writeDouble |
( |
double |
v |
) |
throw (IOException&) |
Writes a 64-bit double precision floating point number into the stream.
- Parameters:
-
void gridripper::io::DataOutputStream::writeFloat |
( |
float |
v |
) |
throw (IOException&) |
Writes a 32-bit single precision floating point number into the stream.
- Parameters:
-
void gridripper::io::DataOutputStream::writeInt |
( |
int |
v |
) |
throw (IOException&) [inline] |
Writes a 32-bit integer into the stream.
- Parameters:
-
void gridripper::io::DataOutputStream::writeShort |
( |
short |
v |
) |
throw (IOException&) [inline] |
Writes a 16-bit integer into the stream.
- Parameters:
-
void gridripper::io::DataOutputStream::writeString |
( |
const string & |
s |
) |
throw (IOException&) |
Writes the string into the stream.
Compatible with java.io.DataOutputStream.writeUTF.
- Parameters:
-
void gridripper::io::DataOutputStream::writeUnsignedInt |
( |
unsigned int |
v |
) |
throw (IOException&) |
Writes a 32-bit unsigned integer into the stream.
- Parameters:
-
void gridripper::io::DataOutputStream::writeUnsignedShort |
( |
unsigned short |
v |
) |
throw (IOException&) |
Writes a 16-bit unsigned integer into the stream.
- Parameters:
-
The documentation for this class was generated from the following file: