public function stream($refresh = FALSE) {

    // If we're working on local content, return that content wrapped in
    // a fake IO stream.
    if (!$refresh && isset($this->content)) {
      return $this->localFileStream();
    }

    // Otherwise, we fetch a fresh version from the remote server and
    // return its stream handle.
    $response = $this->fetchObject(TRUE);

    return $response->file();
  }