gridripper::io::DataOutputStream Class Reference

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::writeByte ( int  b  )  throw (IOException&)

Writes a byte into the stream.

Parameters:
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.

Parameters:
s the string to write

void gridripper::io::DataOutputStream::writeUnsignedInt ( unsigned int  v  )  throw (IOException&)

Writes a 32-bit unsigned integer into the stream.

Parameters:
v the integer

void gridripper::io::DataOutputStream::writeInt ( int  v  )  throw (IOException&) [inline]

Writes a 32-bit integer into the stream.

Parameters:
v the integer

void gridripper::io::DataOutputStream::writeUnsignedShort ( unsigned short  v  )  throw (IOException&)

Writes a 16-bit unsigned integer into the stream.

Parameters:
v the integer

void gridripper::io::DataOutputStream::writeShort ( short  v  )  throw (IOException&) [inline]

Writes a 16-bit integer into the stream.

Parameters:
v the integer

void gridripper::io::DataOutputStream::writeFloat ( float  v  )  throw (IOException&)

Writes a 32-bit single precision floating point number into the stream.

Parameters:
v the float

void gridripper::io::DataOutputStream::writeDouble ( double  v  )  throw (IOException&)

Writes a 64-bit double precision floating point number into the stream.

Parameters:
v the double

void gridripper::io::DataOutputStream::flush (  )  throw (IOException&)

Flushes the stream.


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:46:54 2009 for GridRipper by  doxygen 1.5.6