#include <DataOutputStream.h>
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. |
void gridripper::io::DataOutputStream::writeByte | ( | int | b | ) | throw (IOException&) |
Writes a byte into the stream.
b | the byte to write |
void gridripper::io::DataOutputStream::writeString | ( | const string & | s | ) | throw (IOException&) |
Writes the string into the stream.
Compatible with java.io.DataOutputStream.writeUTF.
s | the string to write |
void gridripper::io::DataOutputStream::writeUnsignedInt | ( | unsigned int | v | ) | throw (IOException&) |
Writes a 32-bit unsigned integer into the stream.
v | the integer |
void gridripper::io::DataOutputStream::writeInt | ( | int | v | ) | throw (IOException&) [inline] |
Writes a 32-bit integer into the stream.
v | the integer |
void gridripper::io::DataOutputStream::writeUnsignedShort | ( | unsigned short | v | ) | throw (IOException&) |
Writes a 16-bit unsigned integer into the stream.
v | the integer |
void gridripper::io::DataOutputStream::writeShort | ( | short | v | ) | throw (IOException&) [inline] |
Writes a 16-bit integer into the stream.
v | the integer |
void gridripper::io::DataOutputStream::writeFloat | ( | float | v | ) | throw (IOException&) |
Writes a 32-bit single precision floating point number into the stream.
v | the float |
void gridripper::io::DataOutputStream::writeDouble | ( | double | v | ) | throw (IOException&) |
Writes a 64-bit double precision floating point number into the stream.
v | the double |
void gridripper::io::DataOutputStream::flush | ( | ) | throw (IOException&) |
Flushes the stream.