]> git.mxchange.org Git - core.git/commitdiff
Also satisfied it here.
authorRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 11:32:04 +0000 (13:32 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 11:32:04 +0000 (13:32 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php
inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php

index 94bb8dccb3ed8a3b9ae5981a0923f9b251d6b2a6..4f5b49b971c1b48ff958b2602db9d63804c78f60 100644 (file)
@@ -109,6 +109,18 @@ class FrameworkFileInputPointer extends BaseFileIo implements InputPointer {
                // Then return it
                return $data;
        }
+
+       /**
+        * Analyzes entries in index file. This will count all found (and valid)
+        * entries, mark invalid as damaged and count gaps ("fragmentation"). If
+        * only gaps are found, the file is considered as "virgin" (no entries).
+        *
+        * @return      void
+        * @throws      UnsupportedOperationException   If this method is called
+        */
+       public function analyzeFile () {
+               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+       }
 }
 
 // [EOF]
index 94db1bcdc501290c863fa06698569d5bc431edc0..ff8faedbeb132d3653485fd7df16541520142ea7 100644 (file)
@@ -89,6 +89,18 @@ class FrameworkFileOutputPointer extends BaseFileIo implements OutputPointer {
                // Write data to the file pointer and return written bytes
                return fwrite($this->getPointer(), $dataStream);
        }
+
+       /**
+        * Analyzes entries in index file. This will count all found (and valid)
+        * entries, mark invalid as damaged and count gaps ("fragmentation"). If
+        * only gaps are found, the file is considered as "virgin" (no entries).
+        *
+        * @return      void
+        * @throws      UnsupportedOperationException   If this method is called
+        */
+       public function analyzeFile () {
+               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+       }
 }
 
 // [EOF]