Renamed Registry -> GenericRegistry to make it clear that this registry does
[core.git] / framework / main / classes / file_directories / text / class_BaseTextFile.php
index 01f78eda9618cf3d3b434cf7de21e40c14f5cc53..f56cc96e2556ac2fe7bb315fead6606d4178aa7f 100644 (file)
@@ -1,6 +1,13 @@
 <?php
 // Own namespace
-namespace CoreFramework\Filesystem\File;
+namespace Org\Mxchange\CoreFramework\Filesystem\File;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Filesystem\File\BaseAbstractFile;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+
+// Import SPL stuff
+use \SplFileInfo;
 
 /**
  * A general text file class
@@ -24,7 +31,7 @@ namespace CoreFramework\Filesystem\File;
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class BaseTextFile extends BaseAbstractFile {
+abstract class BaseTextFile extends BaseAbstractFile {
        /**
         * Protected constructor
         *
@@ -62,17 +69,17 @@ class BaseTextFile extends BaseAbstractFile {
        /**
         * Reads from a local or remote file
         *
-        * @param       $fqfn   The file's FQFN we shall load
+        * @param       $infoInstance   An instance of a SplFileInfo class
         * @return      $array  An array containing all read lines
         * @throws      InvalidArrayCountException      If an array has not the expected size
         * @throws      InvalidMD5ChecksumException     If two MD5 hashes did not match
         */
-       public function loadFileContents ($fqfn) {
+       public function loadFileContents (SplFileInfo $infoInstance) {
                /*
                 * This class (or its implementations) are special file readers/writers.
                 * There is no need to read/write the whole file.
                 */
-               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] fqfn=' . $fqfn);
+               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] infoInstance=' . $infoInstance);
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }