| [Overview][Resource strings][Constants][Types][Classes][Index] | 
Searches for a suitable resource reader
Source position: resource.pp line 261
public class function TResources.FindReader(  | 
aStream: TStream;  | 
aExtension: string  | 
):TAbstractResourceReader;  | 
aStream: TStream  | 
aStream  | 
  | 
The stream to be probed  | 
aExtension  | 
  | 
The extension the reader is registered for  | 
An instance of a TAbstractResourceReader descendant.
aStream  | 
  | 
The stream to be probed  | 
This method tries to find a resource reader able to read the stream passed as parameter.
If an extension is specified, only readers matching that extension are tried. The extension is case-insensitive and includes the leading dot, unless the empty string is passed (which means "no extension", e.g. a unix executable, which doesn't have an extension).
If a suitable reader is found, an instance of that reader is returned.
| Remark: | To make a resource reader class known, add that resource reader unit to the uses clause of your program. | 
If no suitable reader is found, an EResourceReaderNotFoundException exception is raised.
  | 
Base abstract resource reader class  |