Added method stubs to satisfy interface
authorRoland Häder <roland@mxchange.org>
Sun, 22 Apr 2012 20:05:14 +0000 (20:05 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 22 Apr 2012 20:05:14 +0000 (20:05 +0000)
inc/classes/main/debug/class_DebugErrorLogOutput.php
inc/classes/main/debug/class_DebugWebOutput.php

index 3fa1f719d5c34cf2957bd488f4b51971f350b4ed..9c7413758797646b34d12a6e2256488b2172e1ea 100644 (file)
@@ -79,6 +79,18 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu
                        $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]
index b7ac4f0abc5fa7f5424cf8f36053cdd14ca19b0b..b70ca337aa2670b6412d7b51938a1cc6c96551e2 100644 (file)
@@ -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]