public final function getOutputStream () {
return $this->outputStream;
}
+ /**
+ * Saves streamed (that are mostly serialized objects) data to files or
+ * external servers.
+ *
+ * @param $fileName The local file's name including full path
+ * @param $dataArray Array containing the compressor's extension and streamed data
+ * @return void
+ * @throws UnsupportedOperationException If this method is called
+ */
+ public function saveFile ($fileName, array $dataArray) {
+ self::createDebugInstance(__CLASS__)->debugOutput('fileName=' . $fileName . ',dataArray()=' . count($dataArray));
+ throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+ }
/**
* Saves a file with data by using the current output stream
* @param $objectInstance An instance of a FrameworkInterface class (default: NULL)
* @return void
*/
- public function saveFile ($fileName, $dataStream, FrameworkInterface $objectInstance = NULL) {
+ public function saveStreamToFile ($fileName, $dataStream, FrameworkInterface $objectInstance = NULL) {
// Default is this array
$className = $this->__toString();