Continued:
[core.git] / framework / main / classes / file_directories / text / input / class_BaseInputTextFile.php
index 1767a55a753c620b47976b431863a763456d8f15..9216f12ad74ecd75171bc9ac29ed1453ae35b1b0 100644 (file)
@@ -6,6 +6,9 @@ namespace Org\Mxchange\CoreFramework\Filesystem\Text;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filesystem\File\BaseTextFile;
 
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filesystem\File\BaseTextFile;
 
+// Import SPL stuff
+use \SplFileInfo;
+
 /**
  * A general text input file class
  *
 /**
  * A general text input file class
  *
@@ -43,12 +46,12 @@ abstract class BaseInputTextFile extends BaseTextFile {
        /**
         * Initializes this text file for reading
         *
        /**
         * Initializes this text file for reading
         *
-        * @param       $fileName       File's name
+        * @param       $infoInstance   An instance of a SplFileInfo class
         * @return      void
         */
         * @return      void
         */
-       protected function initFile ($fileName) {
+       protected function initFile (SplFileInfo $infoInstance) {
                // Get a file i/o pointer instance
                // Get a file i/o pointer instance
-               $pointerInstance = ObjectFactory::createObjectByConfiguredName('text_file_input_class', array($fileName));
+               $pointerInstance = ObjectFactory::createObjectByConfiguredName('text_file_input_class', array($infoInstance));
 
                // ... and set it here
                $this->setPointerInstance($pointerInstance);
 
                // ... and set it here
                $this->setPointerInstance($pointerInstance);