projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't call the class' factory method directly, use ObjectFactory and
[core.git]
/
inc
/
classes
/
main
/
io
/
io_handler
/
class_FileIoStream.php
diff --git
a/inc/classes/main/io/io_handler/class_FileIoStream.php
b/inc/classes/main/io/io_handler/class_FileIoStream.php
index 35d00eddceda0f6dc6db18d027473c9ffd6cb3e1..d8cd58031fa7c1a9b2d57d46db0d4334c9a24ed9 100644
(file)
--- 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 {
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);
} 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
$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()) {
// Read all it's contents (we very and transparently decompress it below)
while ($readRawLine = $fileInstance->readFromFile()) {