Also getSeekPosition() belongs here ... + TODOs.txt updated (--amend rocks!)
[core.git] / inc / classes / main / iterator / file / class_FileIterator.php
index f8fadbde41e3ab1ea5de5dcfc04c4014214a8a48..303097568594b096714c16ed25b62a39c9e74c33 100644 (file)
@@ -263,6 +263,29 @@ class FileIterator extends BaseIterator implements SeekableWritableFileIterator
                // Call block instance
                return $this->getBlockInstance()->getFileSize();
        }
+
+       /**
+        * Writes data at given position
+        *
+        * @param       $seekPosition   Seek position
+        * @param       $data                   Data to be written
+        * @param       $flushHeader    Whether to flush the header (default: flush)
+        * @return      void
+        */
+       public function writeData ($seekPosition, $data, $flushHeader = TRUE) {
+               // Call block instance
+               $this->getBlockInstance()->writeData($seekPosition, $data, $flushHeader);
+       }
+
+       /**
+        * Getter for seek position
+        *
+        * @return      $seekPosition   Current seek position (stored here in object)
+        */
+       public function getSeekPosition () {
+               // Call block instance
+               return $this->getBlockInstance()->getSeekPosition();
+       }
 }
 
 // [EOF]