SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Io
Class IStreamHandler

NonCopyableType
   |
   +-IStreamHandler

Implemented in:
Platform.Io.IStreamHandler.h
Direct Known Subclasses:
BufferedStream, ByteArrayStream

abstract class IStreamHandler:
private NonCopyableType

An interface to retrieve bytes from an input stream and to store them into an output stream.

Constructor Summarycollapse
~IStreamHandler() = 0
          Destructor.

Method Summarycollapse
Bool avail() const = 0
          Tests whether a byte can be retrieved from the input stream.
Void flush()
          Flushes the output stream.
Byte get() const = 0
          Retrieves a byte from the input stream.
Void put(Byte value) = 0
          Stores a byte in the output stream.

 

Constructor Detail

~IStreamHandler[abstract, inline]

~IStreamHandler() = 0

Destructor.

 

Method Detail

avail[abstract]

Bool avail() const = 0

Tests whether a byte can be retrieved from the input stream.

Returns:
True if a byte can be retrieved by the subsequent get() method, False otherwise

flush[virtual, inline]

Void flush()

Flushes the output stream.


get[abstract]

Byte get() const = 0

Retrieves a byte from the input stream.

Returns:
a byte from the input stream

put[abstract]

Void put(Byte value) = 0

Stores a byte in the output stream.

Parameters:
value - the value to store in the output stream


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND