Better this way
[core.git] / inc / classes / main / streams / class_
index d556b5ba11d888269211cc0341023897dc540263..5cc8474dc773e75b36491f77995248d56745e73e 100644 (file)
@@ -44,6 +44,18 @@ class ???Stream extends BaseStream implements Streamable {
                // Return the instance
                return $streamInstance;
        }
+
+       /**
+        * Streams the data and maybe does something to it
+        *
+        * @param       $data   The data (string mostly) to "stream"
+        * @return      $data   The data (string mostly) to "stream"
+        * @throws      UnsupportedOperationException   If this method is called
+        */
+       public function streamData ($data) {
+               self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+       }
 }
 
 // [EOF]