Renamed getPosition() -> getSeekPosition().
authorRoland Haeder <roland@mxchange.org>
Sat, 17 May 2014 21:28:07 +0000 (23:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 17 May 2014 21:28:07 +0000 (23:28 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/interfaces/io/class_Streamable.php
inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php
inc/classes/main/debug/class_DebugConsoleOutput.php
inc/classes/main/debug/class_DebugErrorLogOutput.php
inc/classes/main/debug/class_DebugWebOutput.php
inc/classes/main/file_directories/class_BaseFileIo.php
inc/classes/main/file_directories/io_stream/class_FileIoStream.php
inc/classes/middleware/io/class_FileIoHandler.php

index 7503dba4f03fad87333647e4b944ea39f1d825b2..3f01db57a2761f181836d7dffe06cdce47b9b54d 100644 (file)
@@ -27,7 +27,7 @@ interface Streamable extends FrameworkInterface {
         *
         * @return      $seekPosition   Current seek position
         */
         *
         * @return      $seekPosition   Current seek position
         */
-       function getPosition ();
+       function getSeekPosition ();
 
        /**
         * Seek to given offset (default) or other possibilities as fseek() gives.
 
        /**
         * Seek to given offset (default) or other possibilities as fseek() gives.
index 529dbe6f1ad36a22677511d7fbbdc2b7ba6fecc1..8be635101a78c2e7bf488c95a12a2b0ec60ea96d 100644 (file)
@@ -37,6 +37,13 @@ interface InputOutputPointer extends InputPointer, OutputPointer {
         * @return      void
         */
        function seek ($seekPosition, $whence = SEEK_SET);
         * @return      void
         */
        function seek ($seekPosition, $whence = SEEK_SET);
+
+       /**
+        * "Getter" for seek position
+        *
+        * @return      $seekPosition   Seek position
+        */
+       function getSeekPosition ();
 }
 
 // [EOF]
 }
 
 // [EOF]
index f915af5e6cd614cedcadd46881e5750d1eea63c3..a4e07bbe5669e59897af861f3904508b2341823c 100644 (file)
@@ -104,7 +104,7 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function getPosition () {
+       public function getSeekPosition () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
index 3289574ac4394a00f3c4e0b5a3ca3329a2e00a0b..74ea9285aa9508f9b77ab21f5a3cadb8c676016d 100644 (file)
@@ -101,7 +101,7 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function getPosition () {
+       public function getSeekPosition () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
index 7b992594fba0b56923119f960f80578356cd0f5a..3795d761a9ca68534345141697eb08de74f75b1e 100644 (file)
@@ -90,7 +90,7 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function getPosition () {
+       public function getSeekPosition () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
index 8cc8f60b11cc3f91949c83e996adf41482f291e4..b3b676dd99527ed16b7e8ecb79d5cac675c338b2 100644 (file)
@@ -128,7 +128,7 @@ class BaseFileIo extends BaseFrameworkSystem {
         *
         * @return      $seekPosition   Current seek position
         */
         *
         * @return      $seekPosition   Current seek position
         */
-       public final function getPosition () {
+       public final function getSeekPosition () {
                return ftell($this->getPointer());
        }
 
                return ftell($this->getPointer());
        }
 
@@ -154,13 +154,13 @@ class BaseFileIo extends BaseFrameworkSystem {
         */
        public function size () {
                // Get current seek position
         */
        public function size () {
                // Get current seek position
-               $seekPosition = $this->getPosition();
+               $seekPosition = $this->getSeekPosition();
 
                // Seek to end
                $this->seek(0, SEEK_END);
 
                // Get position again  (which is the end of the file)
 
                // Seek to end
                $this->seek(0, SEEK_END);
 
                // Get position again  (which is the end of the file)
-               $size = $this->getPosition();
+               $size = $this->getSeekPosition();
 
                // Reset seek position to old
                $this->seek($seekPosition);
 
                // Reset seek position to old
                $this->seek($seekPosition);
index ed875ee235b35405d72a70c2d1e99f15344d4ebd..bf0a3c2d10d8b8cf55a805e856b4eb24b7b9c76d 100644 (file)
@@ -269,7 +269,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * @return      $seekPosition   Current seek position
         * @todo        0% done
         */
         * @return      $seekPosition   Current seek position
         * @todo        0% done
         */
-       public function getPosition () {
+       public function getSeekPosition () {
                $this->partialStub();
        }
 
                $this->partialStub();
        }
 
index 1ac1fc34b5ca7e7a7df978ff336701cc85aec686..2c6ae12c43858b37332bcc4db002e8244754650d 100644 (file)
@@ -173,7 +173,7 @@ class FileIoHandler extends BaseMiddleware implements IoHandler {
         * @return      $seekPosition   Current seek position
         * @todo        0% done
         */
         * @return      $seekPosition   Current seek position
         * @todo        0% done
         */
-       public function getPosition () {
+       public function getSeekPosition () {
                $this->partialStub();
        }
 
                $this->partialStub();
        }