public static function reader(StreamInterface $stream, $bufferSize = 8192)
	{
		if(!$stream->isReadable())
		{
			throw new \InvalidArgumentException(sprintf('Stream is not readable: %s', get_class($stream)));
		}
		
		while(!$stream->eof())
		{
			yield $stream->read($bufferSize);
		}
	}