VMime
|
Public Member Functions | |
stopSequenceFilteredInputStream (inputStream &is, const byte_t *sequence) | |
stopSequenceFilteredInputStream (inputStream &is, const char *sequence) | |
inputStream & | getPreviousInputStream () |
bool | eof () const |
void | reset () |
size_t | read (byte_t *const data, const size_t count) |
size_t | skip (const size_t) |
template<> | |
size_t | read (byte_t *const data, const size_t count) |
template<> | |
size_t | read (byte_t *const data, const size_t count) |
Public Member Functions inherited from filteredInputStream | |
virtual size_t | getBlockSize () |
Public Member Functions inherited from stream | |
virtual | ~stream () |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
A filtered input stream which stops when a specified sequence is found (eof() method will return 'true').
stopSequenceFilteredInputStream | ( | inputStream & | is, |
const byte_t * | sequence | ||
) |
Construct a new filter for the specified input stream.
is | stream from which to read data to be filtered |
sequence | sequence on which to stop |
stopSequenceFilteredInputStream | ( | inputStream & | is, |
const char * | sequence | ||
) |
Construct a new filter for the specified input stream.
is | stream from which to read data to be filtered |
sequence | sequence on which to stop |
|
virtual |
Test for end of stream (no more data to read).
Implements inputStream.
|
virtual |
Return a reference to the stream being filtered.
Implements filteredInputStream.
Read data from the stream.
data | will receive the data read |
count | maximum number of bytes to read |
Implements inputStream.
References vmime::count(), vmime::end(), and inputStream::read().
Referenced by stopSequenceFilteredInputStream< COUNT >::read().
Read data from the stream.
data | will receive the data read |
count | maximum number of bytes to read |
Implements inputStream.
Read data from the stream.
data | will receive the data read |
count | maximum number of bytes to read |
Implements inputStream.
References vmime::end(), and stopSequenceFilteredInputStream< COUNT >::read().
|
virtual |
Set the read pointer to the beginning of the stream.
Implements inputStream.
Skip a number of bytes.
count | maximum number of bytes to ignore |
Implements inputStream.