|
MediaWiki
master
|
Source interface for XML import. More...

Public Member Functions | |
| atEnd () | |
| Indicates whether the end of the input has been reached. More... | |
| readChunk () | |
| Return a chunk of the input, as a (possibly empty) string. More... | |
Source interface for XML import.
Definition at line 32 of file ImportSource.php.
| ImportSource::atEnd | ( | ) |
Indicates whether the end of the input has been reached.
Will return true after a finite number of calls to readChunk.
Implemented in ImportStringSource, and ImportStreamSource.
| ImportSource::readChunk | ( | ) |
Return a chunk of the input, as a (possibly empty) string.
When the end of input is reached, readChunk() returns false. If atEnd() returns false, readChunk() will return a string. If atEnd() returns true, readChunk() will return false.
Implemented in ImportStringSource, and ImportStreamSource.