/**
* Saves a file with data by using the current output stream
*
- * @param $fileName Name of the file
- * @param $dataArray Array with file contents
+ * @param $fileName Name of the file
+ * @param $dataStream File data stream
* @return void
* @see FileOutputStreamer
*/
- public function saveFile ($fileName, $dataArray) {
+ public function saveFile ($fileName, $dataStream) {
// Get output stream
$outInstance = $this->getOutputStream();
+ // Prepare output array
+ $dataArray = array(
+ // @TODO What is this for?
+ 0 => $this->__toString(),
+ 1 => $dataStream
+ );
+
// Send the fileName and dataArray to the output handler
$outInstance->saveFile($fileName, $dataArray);
}