Construct a new Stream
resource $stream Stream resource to wrap:
int $size Size of the stream in bytes. Only pass if the size cannot be obtained from the stream.:
InvalidArgumentException if the stream is not a stream resource
public function __construct($stream, $size = null) {
$this
->setStream($stream, $size);
}