]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/debug/class_DebugWebOutput.php
Added method stubs to satisfy interface
[core.git] / inc / classes / main / debug / class_DebugWebOutput.php
index 3ff18e99047ee92d03b15b413750ca08e49fe28a..b70ca337aa2670b6412d7b51938a1cc6c96551e2 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -37,7 +37,7 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre
         *
         * @return      $debugInstance  The prepared debug instance
         */
-       public final static function createDebugWebOutput () {
+       public static final function createDebugWebOutput () {
                // Get a new instance
                $debugInstance = new DebugWebOutput();
 
@@ -68,6 +68,18 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre
                        $this->outputStream($outStream);
                }
        }
+
+       /**
+        * 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) {
+               $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+       }
 }
 
 // [EOF]