} // END - if
// Read file header
- $this->readFileHeader()
+ $this->readFileHeader();
// The above method does already check the header
$isInitialized = TRUE;
} // END - if
// Make sure the block instance is set
- assert($this->getBlockInstance() instanceof CalculatableBlock);
+ assert($this->getBlockInstance() instanceof Block);
// First calculate minimum block length
$length = $this->getBlockInstance()->calculateMinimumBlockLength();
*/
public function valid () {
// Make sure the block instance is set
- assert($this->getBlockInstance() instanceof CalculatableBlock);
+ assert($this->getBlockInstance() instanceof Block);
// First calculate minimum block length
$length = $this->getBlockInstance()->calculateMinimumBlockLength();
* @return void
*/
public function readFileHeader () {
+ // Make sure the block instance is set
+ assert($this->getBlockInstance() instanceof Block);
+
// Call block instance
- $this->getBlockInstance()->readFileHeader()
+ $this->getBlockInstance()->readFileHeader();
}
/**
* @return void
*/
public function flushFileHeader () {
+ // Make sure the block instance is set
+ assert($this->getBlockInstance() instanceof Block);
+
// Call block instance
- $this->getBlockInstance()->flushFileHeader()
+ $this->getBlockInstance()->flushFileHeader();
}
}