]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php
Added more methods (required).
[core.git] / inc / classes / interfaces / io / pointer / io / class_InputOutputPointer.php
index b901c1b472819c6c01dc1b0f7088e9a1ad9ac2c6..0cb98dd847801d3cb036a5701bb0d4192b2fe342 100644 (file)
@@ -25,25 +25,32 @@ interface InputOutputPointer extends InputPointer, OutputPointer {
        /**
         * Rewinds to the beginning of the file
         *
-        * @return      $status         Status of this operation
+        * @return      $status         Status of this operation
         */
        function rewind ();
 
        /**
-        * Seeks to given position
+        * Advances to next "block" of bytes
         *
-        * @param       $seekPosition   Seek position in file
-        * @param       $whence                 "Seek mode" (see http://de.php.net/fseek)
-        * @return      $tatus                  Status of this operation
+        * @return      void
+        * @todo        This method will load large but empty files in a whole
         */
-       function seek ($seekPosition, $whence = SEEK_SET);
+       function next ();
 
        /**
-        * "Getter" for seek position
+        * 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.
         *
-        * @return      $seekPosition   Seek position
+        * @return      $isValid        Whether the next entry is valid
         */
-       function getSeekPosition ();
+       function valid ();
+
+       /**
+        * Gets current seek position ("key").
+        *
+        * @return      $key    Current key in iteration
+        */
+       function key ();
 }
 
 // [EOF]