A stream representing a slice of (or view into) another stream. More...
#include <EBOOKStreamSlice.h>
Public Member Functions | |
EBOOKStreamSlice (WPXInputStream *stream, long begin, long end) | |
virtual | ~EBOOKStreamSlice () |
virtual bool | isOLEStream () |
virtual WPXInputStream * | getDocumentOLEStream (const char *name) |
virtual const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead) |
virtual int | seek (long offset, WPX_SEEK_TYPE seekType) |
virtual long | tell () |
virtual bool | atEOS () |
Private Member Functions | |
EBOOKStreamSlice (const EBOOKStreamSlice &other) | |
EBOOKStreamSlice & | operator= (const EBOOKStreamSlice &other) |
Private Attributes | |
WPXInputStream *const | m_stream |
const long | m_begin |
const long | m_end |
A stream representing a slice of (or view into) another stream.
The purpose of this class is only to simplify reading of chunks of data from the original stream. All reading operations change the original stream. That means that it is not advisable to use the original stream while a slice of it is in use too.
|
private |
libebook::EBOOKStreamSlice::EBOOKStreamSlice | ( | WPXInputStream * | stream, |
long | begin, | ||
long | end | ||
) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
private |
Referenced by EBOOKStreamSlice(), read(), seek(), and tell().
|
private |
Referenced by atEOS(), EBOOKStreamSlice(), read(), seek(), and tell().