]> git.mxchange.org Git - core.git/commitdiff
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 45dad992f011b1b0e4d8a60c16e19405c1841b21..32cad9101d7714c66024516efa622dccb615b8da 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 a12d74279e2ba11d8023d83b0a08d94b97aec1d2..20a3c375b5539743125cfaeb12c032894f773b5c 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 7a4b961647d42d87496eedcb7249ec06e2ea42b4..6dd651caf43d64d565716dfbfea6ca865223d21a 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 9da9da446295243b158c47514eed63212770cce9..81648d58009de0aa1c109a85a9b75afcbccd7612 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
         *