ZStrimR_Boundary Class Reference

A read filter strim that reads from another strim until a boundary sequence is encountered. More...

#include <ZStrimR_Boundary.h>

Inheritance diagram for ZStrimR_Boundary:

ZStrimR List of all members.

Public Member Functions

bool HitBoundary () const
void Reset ()

Detailed Description

A read filter strim that reads from another strim until a boundary sequence is encountered.

We use Boyer-Moore to efficiently search for the boundary sequence in the source strim. However, instead of discarding data that fails to match it is returned as the result of calls to Imp_ReadUTF32.


Member Function Documentation

bool ZStrimR_Boundary::HitBoundary (  )  const

This method distinguishes between a strim that's gone empty because the boundary was encountered and one that's gone empty because the source strim is empty.

void ZStrimR_Boundary::Reset (  ) 

After the boundary has been encountered the strim appears empty. Calling ZStrimR_Boundary::Reset will allow data to be read again until the next boundary or the real end of strim.


The documentation for this class was generated from the following files:
Generated on Thu Jul 26 11:22:06 2007 for ZooLib by  doxygen 1.4.7