]> git.mxchange.org Git - core.git/commitdiff
Renamed one getSeekPosition() to determineSeekPosition().
authorRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 18:33:37 +0000 (20:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 18:33:37 +0000 (20:33 +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/main/iterator/io/class_FileIoIterator.php
inc/classes/middleware/io/class_FileIoHandler.php

index 3f01db57a2761f181836d7dffe06cdce47b9b54d..07ce93fef795cf760b59bb20e1662c4996c74500 100644 (file)
  */
 interface Streamable extends FrameworkInterface {
        /**
-        * "Getter" for seek position
+        * Determines seek position
         *
         * @return      $seekPosition   Current seek position
         */
-       function getSeekPosition ();
+       function determineSeekPosition ();
 
        /**
         * Seek to given offset (default) or other possibilities as fseek() gives.
index b901c1b472819c6c01dc1b0f7088e9a1ad9ac2c6..6dc483a3df9daece2f98bfb3d425cddf4b8f2755 100644 (file)
@@ -37,13 +37,6 @@ interface InputOutputPointer extends InputPointer, OutputPointer {
         * @return      $tatus                  Status of this operation
         */
        function seek ($seekPosition, $whence = SEEK_SET);
-
-       /**
-        * "Getter" for seek position
-        *
-        * @return      $seekPosition   Seek position
-        */
-       function getSeekPosition ();
 }
 
 // [EOF]
index a4e07bbe5669e59897af861f3904508b2341823c..401dc9df905d8f865715fa04bc5224cac5ae6551 100644 (file)
@@ -99,12 +99,12 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output
        }
 
        /**
-        * "Getter" for seek position
+        * Determines seek position
         *
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function getSeekPosition () {
+       public function determineSeekPosition () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
index 74ea9285aa9508f9b77ab21f5a3cadb8c676016d..b39adc5f7259aa0b67170300e769fa0024a8fab7 100644 (file)
@@ -96,12 +96,12 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu
        }
 
        /**
-        * "Getter" for seek position
+        * Determines for seek position
         *
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function getSeekPosition () {
+       public function determineSeekPosition () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
index 3795d761a9ca68534345141697eb08de74f75b1e..7e781e450d7e723560c04cba7634dc5c3856cb5a 100644 (file)
@@ -85,12 +85,12 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre
        }
 
        /**
-        * "Getter" for seek position
+        * Determines seek position
         *
         * @return      $seekPosition   Current seek position
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function getSeekPosition () {
+       public function determineSeekPosition () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
index f33024c69bd04934d1485521cafad296da6c0b06..16e905ddab8188b0e23ee165248803e33a933b50 100644 (file)
@@ -124,11 +124,11 @@ class BaseFileIo extends BaseFrameworkSystem {
        }
 
        /**
-        * "Getter" for seek position
+        * Determines seek position
         *
         * @return      $seekPosition   Current seek position
         */
-       public final function getSeekPosition () {
+       public final function determineSeekPosition () {
                return ftell($this->getPointer());
        }
 
@@ -158,14 +158,14 @@ class BaseFileIo extends BaseFrameworkSystem {
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
 
                // Get current seek position
-               $seekPosition = $this->getSeekPosition();
+               $seekPosition = $this->determineSeekPosition();
 
                // Seek to end
                $seekStatus = $this->seek(0, SEEK_END);
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] seekStatus=%d', __METHOD__, __LINE__, $seekStatus));
 
                // Get position again  (which is the end of the file)
-               $size = $this->getSeekPosition();
+               $size = $this->determineSeekPosition();
 
                // Reset seek position to old
                $this->seek($seekPosition);
index bf0a3c2d10d8b8cf55a805e856b4eb24b7b9c76d..599bc9f3d37a3a8b9bbd791c102c6078894b29c8 100644 (file)
@@ -264,12 +264,12 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
        }
 
        /**
-        * "Getter" for seek position
+        * Determines seek position
         *
         * @return      $seekPosition   Current seek position
         * @todo        0% done
         */
-       public function getSeekPosition () {
+       public function determineSeekPosition () {
                $this->partialStub();
        }
 
index e6aee1d9190ce602dca07bc4ae1851a3e89ca347..171c6777f66f00b314b70c529af2753ca9c3b9fb 100644 (file)
@@ -71,7 +71,7 @@ class FileIoIterator extends BaseIterator implements SeekableWritableFileIterato
         */
        public function key () {
                // Return it
-               return $this->getPointerInstance()->getSeekPosition();
+               return $this->getPointerInstance()->determineSeekPosition();
        }
 
        /**
index 2c6ae12c43858b37332bcc4db002e8244754650d..d8882a726b9a4f121b785af53de9cc49438e1982 100644 (file)
@@ -168,12 +168,12 @@ class FileIoHandler extends BaseMiddleware implements IoHandler {
        }
 
        /**
-        * "Getter" for seek position
+        * Determines seek position
         *
         * @return      $seekPosition   Current seek position
         * @todo        0% done
         */
-       public function getSeekPosition () {
+       public function determineSeekPosition () {
                $this->partialStub();
        }