try {
// Get a file pointer
- $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfigInstance()->getConfigEntry('hostname_file'));
+ $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_class', $helperInstance->getConfigInstance()->getConfigEntry('hostname_file'));
// Read the file
- $rawData = trim($io->readFromFile());
+ $rawData = trim($fileInstance->readFromFile());
// Close the file
- $io->closeFile();
+ $fileInstance->closeFile();
// Extract hostname from it
$hostname = $helperInstance->extractHostnameFromRawData($rawData);
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);
$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()) {
// CFG: DIRECTORY-CLASS
$cfg->setConfigEntry('directory_class', 'FrameworkDirectoryPointer');
+// CFG: FILE-INPUT-CLASS
+$cfg->setConfigEntry('file_raw_input_class', 'FrameworkFileInputPointer');
+
+// CFG: FILE-OUTPUT-CLASS
+$cfg->setConfigEntry('file_raw_output_class', 'FrameworkFileOutputPointer');
+
+// CFG: FILE-INPUT-OUTPUT-CLASS
+$cfg->setConfigEntry('file_raw_input_output_class', 'FrameworkFileInputOutputPointer');
+
// [EOF]
?>