If the content being crawled is in a file, the file can be streamed directly from the source directory.
The following steps describe a typical custom mechanism to return files in a indexable format and set the content type and file name using the appropriate headers.