More cleanups of public closeFile() method as it is private now and shall only
authorRoland Haeder <roland@mxchange.org>
Wed, 18 Mar 2015 00:36:17 +0000 (01:36 +0100)
committerRoland Haeder <roland@mxchange.org>
Wed, 18 Mar 2015 00:36:17 +0000 (01:36 +0100)
be called by the destructor.

Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/interfaces/block/class_Block.php
inc/classes/interfaces/io/class_FilePointer.php
inc/classes/main/index/class_BaseIndex.php
inc/classes/main/stacker/file/class_BaseFileStack.php

index 45dad99..32cad91 100644 (file)
@@ -36,16 +36,6 @@ interface Block extends FrameworkInterface {
         */
        function flushFileHeader ();
 
-       /**
-        * Close a file source and set it's instance to null and the file name
-        * to empty.
-        *
-        * @return      void
-        * @throws      NullPointerException    If the file pointer instance is not set by setPointer()
-        * @throws      InvalidResourceException        If there is being set
-        */
-       function closeFile ();
-
        /**
         * Determines whether the EOF has been reached
         *
index a12d742..20a3c37 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface FilePointer extends FrameworkInterface {
-       /**
-        * Close a file source and set it's instance to null and the file name
-        * to empty.
-        *
-        * @return      void
-        * @throws      NullPointerException    If the file pointer instance is not set by setPointer()
-        * @throws      InvalidResourceException        If there is being set
-        */
-       function closeFile ();
-
        /**
         * Getter for the file pointer
         *
index 7a4b961..6dd651c 100644 (file)
@@ -190,17 +190,6 @@ class BaseIndex extends BaseFrameworkSystem {
                return $length;
        }
 
-       /**
-        * Close a file source and set it's instance to null and the file name
-        * to empty.
-        *
-        * @return      void
-        * @throws      UnsupportedOperationException   If this method is called
-        */
-       public function closeFile () {
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
-       }
-
        /**
         * Determines whether the EOF has been reached
         *
index 9da9da4..81648d5 100644 (file)
@@ -361,17 +361,6 @@ class BaseFileStack extends BaseStacker {
                throw new UnsupportedOperationException(array($this, __FUNCTION__, $this->getIteratorInstance()->getPointerInstance()), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
-       /**
-        * Close a file source and set it's instance to null and the file name
-        * to empty.
-        *
-        * @return      void
-        * @throws      UnsupportedOperationException   This method is not (and maybe never will be) supported
-        */
-       public function closeFile () {
-               throw new UnsupportedOperationException(array($this, __FUNCTION__, $this->getIteratorInstance()->getPointerInstance()), self::EXCEPTION_UNSPPORTED_OPERATION);
-       }
-
        /**
         * Determines whether the EOF has been reached
         *