$fileInstance = ObjectFactory::createObjectByConfiguredName('stack_file_class', array($fileName));
// Get iterator instance
- $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_io_iterator_class', array($fileInstance));
+ $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_io_iterator_class', array($fileInstance, $this));
// Is the instance implementing the right interface?
assert($iteratorInstance instanceof SeekableWritableFileIterator);
}
/**
- * Calculates minimum length for one entry
+ * Calculates minimum length for one entry/block
*
- * @return $length Minimum length for one entry
+ * @return $length Minimum length for one entry/block
*/
- protected function caluclateMinimumFileEntryLength () {
+ public function caluclateMinimumBlockLength () {
// Calulcate it
$length = self::getHashLength() + strlen(self::SEPARATOR_HASH_NAME) + self::LENGTH_NAME + 1;