*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
// Call parent constructor
parent::__construct($className);
}
+
+ /**
+ * Initializes this stack.
+ *
+ * @param $fileName File name of this stack
+ * @return void
+ */
+ protected function initStack ($fileName) {
+ // Get a file i/o pointer instance
+ $pointerInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_output_class', array($fileName));
+
+ // Get iterator instance
+ $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_io_iterator_class', array($pointerInstance));
+
+ // Is the instance implementing the right interface?
+ assert($iteratorInstance instanceof SeekableFileIterator);
+
+ // Set iterator here
+ $this->setIteratorInstance($iteratorInstance);
+ }
}
// [EOF]