/** * Returns the file stream to handle the requested path * * @param PathInformation $path The path information * @param string $mode The mode used to open the path * @return FileBuffer The file buffer to handle the path */ public function createFileBuffer(PathInformation $path, $mode) { $repo = $path->getRepository(); $buffer = $repo->showFile($path->getLocalPath(), $path->getRef()); $objectInfo = $repo->getObjectInfo($path->getLocalPath(), $path->getRef()); return new StringBuffer($buffer, $objectInfo, 'r'); }