Satified interface.
authorRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 13:13:25 +0000 (15:13 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 13:13:25 +0000 (15:13 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/iterator/io/class_FileIoIterator.php

index 5be1266..2105437 100644 (file)
@@ -161,6 +161,37 @@ class FileIoIterator extends BaseIterator implements SeekableWritableFileIterato
                // Just call the pointer instance
                $this->getPointerInstance()->analyzeFile();
        }
+
+       /**
+        * Checks whether the file header is initialized
+        *
+        * @return      $isInitialized  Whether the file header is initialized
+        */
+       public function isFileHeaderInitialized () {
+               // Just call the pointer instance
+               return $this->getPointerInstance()->isFileHeaderInitialized();
+       }
+
+       /**
+        * Creates the assigned file
+        *
+        * @return      void
+        */
+       public function createFileHeader () {
+               // Just call the pointer instance
+               $this->getPointerInstance()->createFileHeader();
+       }
+
+       /**
+        * Pre-allocates file (if enabled) with some space for later faster write access.
+        *
+        * @param       $type   Type of the file
+        * @return      void
+        */
+       public function preAllocateFile ($type) {
+               // Just call the pointer instance
+               $this->getPointerInstance()->preAllocateFile($type);
+       }
 }
 
 // [EOF]