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

stdbase::io::FilterInputStream Class Reference

Filter input stream class. More...

Inheritance diagram for stdbase::io::FilterInputStream::

stdbase::system::Object stdbase::io::InputStream stdbase::io::BufferedInputStream 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 close () throw (IOException)
 Closes the stream and releases any resources.

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 FilterInputStream 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...

virtual long skip (long n) throw (IOException)
 Skip the next n bytes from the input stream. More...


Static Public Methods

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

Protected Methods

 FilterInputStream (InputStreamRef input)
virtual ~FilterInputStream ()

Detailed Description

Filter input stream class.

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

Definition at line 55 of file FilterInputStream.


Member Function Documentation

void stdbase::io::FilterInputStream::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::InputStream.

Reimplemented in stdbase::io::BufferedInputStream.

Definition at line 71 of file FilterInputStream.cpp.

int stdbase::io::FilterInputStream::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::InputStream.

Reimplemented in stdbase::io::BufferedInputStream.

Definition at line 116 of file FilterInputStream.cpp.

void stdbase::io::FilterInputStream::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::InputStream.

Reimplemented in stdbase::io::BufferedInputStream.

Definition at line 85 of file FilterInputStream.cpp.

long stdbase::io::FilterInputStream::skip long n throw (IOException) [virtual]
 

Skip the next n bytes from the input stream.

Returns:
the number of bytes skipped.

Reimplemented from stdbase::io::InputStream.

Definition at line 127 of file FilterInputStream.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