}
/**
- * 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
// @TODO Not finished yet
$length = 0;
$fileInstance = ObjectFactory::createObjectByConfiguredName('index_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);