* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class FileIoIterator extends BaseIterator implements SeekableWritableFileIterator {
+ /**
+ * Current absolute seek position (returned by key())
+ */
+ private $seekPosition = FALSE;
+
+ /**
+ * Total entries (read from file)
+ */
+ private $totalEntriesFile = FALSE;
+
/**
* Protected constructor
*
/**
* Creates an instance of this class
*
- * @param $pointerInstance An instance of a FrameworkFileInputOutputPointer class
+ * @param $pointerInstance An instance of a InputOutputPointer class
* @return $iteratorInstance An instance of a Iterator class
*/
- public final static function createFileIoIterator (FrameworkFileInputOutputPointer $pointerInstance) {
+ public final static function createFileIoIterator (InputOutputPointer $pointerInstance) {
// Get new instance
$iteratorInstance = new FileIoIterator();
$this->partialStub('Please implement this method. seekPosition=' . $seekPosition);
}
+ /**
+ * Size of file stack
+ *
+ * @return $size Size (in bytes) of file
+ */
+ public function size () {
+ // Call the pointer object
+ $size = $this->getPointerInstance()->size();
+
+ // Return result
+ return $size;
+ }
+
/**
* Checks wether the current entry is valid (not at the end of the file).
* This method will return TRUE if an emptied (nulled) entry has been found.