From 01cd588445eda43e516c1b35b72843488dc991bb Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 24 May 2014 13:32:04 +0200 Subject: [PATCH] Also satisfied it here. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../input/class_FrameworkFileInputPointer.php | 12 ++++++++++++ .../output/class_FrameworkFileOutputPointer.php | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php b/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php index 94bb8dcc..4f5b49b9 100644 --- a/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php +++ b/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php @@ -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] diff --git a/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php b/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php index 94db1bcd..ff8faedb 100644 --- a/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php +++ b/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php @@ -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] -- 2.39.2