X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ffile_directories%2Finput%2Ftext%2Fclass_FrameworkTextFileInputPointer.php;h=00706310c813857b180e6bb686f89ed3198f57db;hp=50c21f6c5b4b0e0f0b27cec871b0cd911663c21b;hb=868c877607670760eb36e63ebeb1a04237907be9;hpb=63f5632b0c5d2cebf8dd0940fdab561f86470f80 diff --git a/framework/main/classes/file_directories/input/text/class_FrameworkTextFileInputPointer.php b/framework/main/classes/file_directories/input/text/class_FrameworkTextFileInputPointer.php index 50c21f6c..00706310 100644 --- a/framework/main/classes/file_directories/input/text/class_FrameworkTextFileInputPointer.php +++ b/framework/main/classes/file_directories/input/text/class_FrameworkTextFileInputPointer.php @@ -1,16 +1,19 @@ openFile('r'); + + // Debug message + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TEXT-FILE-INPUT: fileObject[]=' . gettype($fileObject)); + + // Is it valid? if ((is_null($fileObject)) || ($fileObject === false)) { // Something bad happend throw new FileIoException($infoInstance, self::EXCEPTION_FILE_POINTER_INVALID); @@ -77,7 +86,7 @@ class FrameworkTextFileInputPointer extends BaseFileIo implements InputPointer { $pointerInstance = new FrameworkTextFileInputPointer(); // Set file pointer and file name - $pointerInstance->setPointer($fileObject); + $pointerInstance->setFileObject($fileObject); // Return the instance return $pointerInstance; @@ -108,7 +117,7 @@ class FrameworkTextFileInputPointer extends BaseFileIo implements InputPointer { * * @param $bytes Amount of bytes to read or whole line (only text files) * @return $data Data read from file - * @throws NullPointerException If the file pointer instance is not set by setPointer() + * @throws NullPointerException If the file pointer instance is not set by setFileObject() * @throws InvalidResourceException If there is no object being set */ public function read ($bytes = NULL) {