readFile

open fun readFile(qualifiedName: String, resolver: ModuleRootResolver, withFile: (UUID, String, AvailFile) -> Unit, failureHandler: (ErrorCode, Throwable?) -> Unit)

Retrieve the AbstractFileWrapper and provide it with a request to obtain the raw file bytes.

Return

The FileManager file id for the file.

Parameters

qualifiedName

The fully-qualified name of the module or resource.

resolver

The ModuleRootResolver used to access the target ModuleRoot.

withFile

A function that accepts the FileManager.fileCache, the file mime type, and AvailFile.

failureHandler

A function that accepts a ErrorCode that describes the nature of the failure and an optional Throwable.