X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ffile_directories%2Fclass_BaseAbstractFile.php;h=29517f425c0b0c942cf38585d882d9b9c4572f14;hp=92b3f114dce1f1ad9b8cf9552ea5d1eb1ecbb921;hb=868c877607670760eb36e63ebeb1a04237907be9;hpb=3191b3ee467d8844ec574321291cfc6ddc34eb69 diff --git a/framework/main/classes/file_directories/class_BaseAbstractFile.php b/framework/main/classes/file_directories/class_BaseAbstractFile.php index 92b3f114..29517f42 100644 --- a/framework/main/classes/file_directories/class_BaseAbstractFile.php +++ b/framework/main/classes/file_directories/class_BaseAbstractFile.php @@ -105,10 +105,9 @@ abstract class BaseAbstractFile extends BaseFrameworkSystem implements FilePoint * 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(); } /** @@ -144,7 +143,7 @@ abstract class BaseAbstractFile extends BaseFrameworkSystem implements FilePoint * * @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 () { @@ -158,7 +157,7 @@ abstract class BaseAbstractFile extends BaseFrameworkSystem implements FilePoint * @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 */