#include <ContentSource.h>
Public Methods | |
virtual | ~ContentSource () |
virtual unsigned long | getBytesRemaining ()=0 |
virtual int | readContent (unsigned char *outDestinationBuffer, unsigned long inBytesToRead)=0 |
virtual void | skipContent (unsigned long inBytesToSkip)=0 |
virtual void | restart ()=0 |
virtual void | clear ()=0 |
virtual ContentSource* | copy ()=0 |
|
|
|
Destroys the content underlying this source. For example, if this content source reads from a file on disk, calling clear() on this source will remove the file from the disk. Calling clear() may render a content source unusable. |
|
Makes a deep copy of this source.
|
|
Gets the number of bytes remaining to be read.
|
|
Reads a buffer full of content.
|
|
Restarts this content source so that readContent will re-read the first byte. |
|
Skips content.
|