Continued:
[core.git] / inc / main / classes / file_directories / io_stream / class_FileIoStream.php
index d0ff549078ded20e66400723d7c6e58aaa1b0feb..827bd9d80a31370570ca62cc3b5f6a77c6bcb36c 100644 (file)
@@ -1,10 +1,19 @@
 <?php
 <?php
+// Own namespace
+namespace CoreFramework\Stream\Filesystem;
+
+// Import framework stuff
+use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Stream\Filesystem\FileInputStreamer;
+use CoreFramework\Stream\Filesystem\FileOutputStreamer;
+
 /**
  * An universal class for file input/output streams.
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
 /**
  * An universal class for file input/output streams.
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -54,7 +63,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * Create a file IO stream. This is a class for performing all actions
         * on files like creating, deleting and loading them.
         *
         * Create a file IO stream. This is a class for performing all actions
         * on files like creating, deleting and loading them.
         *
-        * @return      $ioInstance     An instance of FileIoStream
+        * @return      $ioInstance     An instance of a FileIoStream class
         */
        public static final function createFileIoStream () {
                // Create new instance
         */
        public static final function createFileIoStream () {
                // Create new instance
@@ -253,7 +262,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
-               self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
@@ -286,7 +295,5 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
        public function size () {
                $this->partialStub();
        }
        public function size () {
                $this->partialStub();
        }
-}
 
 
-// [EOF]
-?>
+}