Satisfied Pointer interface, but it will throw an exception ... ;-)
[core.git] / inc / classes / main / file_directories / class_BaseFile.php
index 8881b6a64b60cbc55e3c97c401a9cbae1fd6a1b5..7e21076d285a7940a56a74bf6a63eb6e0a2acab5 100644 (file)
@@ -51,6 +51,17 @@ class BaseFile extends BaseFrameworkSystem {
                parent::__destruct();
        }
 
+       /**
+        * Getter for the file pointer
+        *
+        * @return      $filePointer    The file pointer which shall be a valid file resource
+        * @throws      UnsupportedOperationException   If this method is called
+        */
+       public final function getPointer () {
+               self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+       }
+
        /**
         * Setter for file name
         *