]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/io/class_StreamableInput.php
Refacuring / possible WIP:
[core.git] / framework / main / interfaces / io / class_StreamableInput.php
index 49e4a9d929d58841cf83c9ed2e5213c4927c05ab..400509ab07d8e7c08a31ea769d6d104c576293fb 100644 (file)
@@ -28,5 +28,28 @@ use Org\Mxchange\CoreFramework\Stream\Streamable;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface StreamableInput extends Streamable {
+       /**
+        * Determines seek position
+        *
+        * @return      $seekPosition   Current seek position
+        */
+       function determineSeekPosition ();
+
+       /**
+        * Seek to given offset (default) or other possibilities as fseek() gives.
+        *
+        * @param       $offset         Offset to seek to (or used as "base" for other seeks)
+        * @param       $whence         Added to offset (default: only use offset to seek to)
+        * @return      void
+        * @throws      OutOfBoundsException    If the position is not seekable
+        */
+       function seek (int $offset, int $whence = SEEK_SET);
+
+       /**
+        * Size of file stack
+        *
+        * @return      $size   Size (in bytes) of file
+        */
+       function size ();
 
 }