X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fio%2Fio_handler%2Fclass_FileIoStream.php;h=d8cd58031fa7c1a9b2d57d46db0d4334c9a24ed9;hp=35d00eddceda0f6dc6db18d027473c9ffd6cb3e1;hb=5c2c855827d5dc90b825d1c88c9aeb76939024d0;hpb=463e9e846f7331972e6aeb7209895d799bef800a diff --git a/inc/classes/main/io/io_handler/class_FileIoStream.php b/inc/classes/main/io/io_handler/class_FileIoStream.php index 35d00edd..d8cd5803 100644 --- a/inc/classes/main/io/io_handler/class_FileIoStream.php +++ b/inc/classes/main/io/io_handler/class_FileIoStream.php @@ -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()) {