def __init__(self, sourceFile, application):
        # Default buffer size for this stream resource.
        self._bufferSize = 0

        # File where the downloaded content is fetched from.
        self._sourceFile = None

        # Application.
        self._application = None

        # Default cache time for this stream resource.
        self._cacheTime = DownloadStream.DEFAULT_CACHETIME

        self._application = application
        self.setSourceFile(sourceFile)
        application.addResource(self)
Creates a new file resource for providing given file for
dataset/ETHPy150Open rwl/muntjac/muntjac/terminal/file_resource.py/FileResource.__init__