*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
-<<<<<<< HEAD:framework/main/classes/file_directories/class_BaseAbstractFile.php
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
-=======
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
->>>>>>> Some updates::inc/main/classes/file_directories/class_BaseAbstractFile.php
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* Getter for the file object
*
* @return $fileObject An instance of a SplFileObject
- * @throws UnsupportedOperationException If this method is called
*/
public final function getFileObject () {
- throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+ return $this->getPointerInstance()->getFileObject();
}
/**
*
* @return mixed The result of fread()
* @throws NullPointerException If the file pointer instance
- * is not set by setPointer()
+ * is not set by setFileObject()
* @throws InvalidResourceException If there is being set
*/
public function readFromFile () {
* @param $dataStream The data stream we shall write to the file
* @return mixed Number of writes bytes or false on error
* @throws NullPointerException If the file pointer instance
- * is not set by setPointer()
+ * is not set by setFileObject()
* @throws InvalidResourceException If there is being set
* an invalid file resource
*/