Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/Encoding/FilteredStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,30 @@ public function __toString()
return $this->getContents();
}

/**
* {@inheritdoc}
*/
public function isSeekable()
{
return false;
}

/**
* {@inheritdoc}
*/
public function rewind()
{
throw new \RuntimeException('Cannot rewind a filtered stream');
}

/**
* {@inheritdoc}
*/
public function seek($offset, $whence = SEEK_SET)
{
throw new \RuntimeException('Cannot seek a filtered stream');
}

/**
* Returns the read filter name.
*
Expand Down