Don't call the class' factory method directly, use ObjectFactory and
[core.git] / inc / classes / main / io / io_handler / class_FileIoStream.php
index 35d00eddceda0f6dc6db18d027473c9ffd6cb3e1..d8cd58031fa7c1a9b2d57d46db0d4334c9a24ed9 100644 (file)
@@ -79,7 +79,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                for ($idx = 0; $idx < 5; $idx++) {
                        // Get a file output pointer
                        try {
-                               $fileInstance = FrameworkFileOutputPointer::createFrameworkFileOutputPointer($fileName, 'w');
+                               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', $fileName);
                        } catch (FileIoException $e) {
                                // Create missing directory
                                $dirName = dirname($fileName);
@@ -147,7 +147,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                $readData = ''; // This will contain our read data
 
                // Get a file input handler
-               $fileInstance = FrameworkFileInputPointer::createFrameworkFileInputPointer($fqfn);
+               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_class', $fqfn);
 
                // Read all it's contents (we very and transparently decompress it below)
                while ($readRawLine = $fileInstance->readFromFile()) {