Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

stdbase::io::BufferedInputStream Class Reference

Buffered version of an input stream filter. More...

Inheritance diagram for stdbase::io::BufferedInputStream::

stdbase::io::FilterInputStream stdbase::system::Object stdbase::io::InputStream List of all members.

Public Methods

virtual int available () throw (IOException)
 Get the number of bytes that can be read or skipped before the next read would block.

virtual void mark (int readlimit)
 Marks the current position in the input stream incase the caller need return to this point - done by calling reset(). More...

virtual void reset () throw (IOException)
 Returns the caller to a previously marked position in the input stream (if supported). More...

virtual bool markSupported ()
 Test to see whether the InputStream implementation supports the mark()/reset() methods.

virtual int read (byte buffer[], int len) throw (IOException)
 Read a buffer of bytes - NEEDS Array.

virtual int read () throw (IOException)
 Read a single byte from the stream and return it as an integer. More...


Static Public Methods

system::reference< BufferedInputStream > create (InputStreamRef r)

Protected Methods

 BufferedInputStream (InputStreamRef input)
virtual ~BufferedInputStream ()

Detailed Description

Buffered version of an input stream filter.

Revision:
1.1
Author:
w-molloy
Date:
2002/08/12 08:34:16

Definition at line 54 of file BufferedInputStream.


Member Function Documentation

void stdbase::io::BufferedInputStream::mark int readlimit [virtual]
 

Marks the current position in the input stream incase the caller need return to this point - done by calling reset().

Parameters:
readlimit   the maximum limit of bytes before the marked position becomes invalid.

Reimplemented from stdbase::io::FilterInputStream.

Definition at line 81 of file BufferedInputStream.cpp.

int stdbase::io::BufferedInputStream::read throw (IOException) [virtual]
 

Read a single byte from the stream and return it as an integer.

Returns:
the number of bytes read.

Reimplemented from stdbase::io::FilterInputStream.

Definition at line 201 of file BufferedInputStream.cpp.

void stdbase::io::BufferedInputStream::reset throw (IOException) [virtual]
 

Returns the caller to a previously marked position in the input stream (if supported).

Exceptions:
IOException   if mark/reset not supported or if the number of bytes read exceeds the mark readlimit when mark() was called.

Reimplemented from stdbase::io::FilterInputStream.

Definition at line 97 of file BufferedInputStream.cpp.


The documentation for this class was generated from the following files:
Generated at Tue Aug 13 14:19:40 2002 for stdnet2 by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001