Package com.scriptbasic.sourceproviders
Class FileSourceProvider
- java.lang.Object
-
- All Implemented Interfaces:
SourcePathProvider,SourceProvider
public class FileSourceProvider extends SingleIncludeSourcePathNonRelativeSourceProvider
A source provider that reads the sources from files. This provider includes a file only once and does not support relative file name 'include'. Also this implementation uses theSourcePathto find a file.- Author:
- Peter Verhas
-
-
Constructor Summary
Constructors Constructor Description FileSourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceReadergetSource(java.lang.String sourceName)-
Methods inherited from class com.scriptbasic.sourceproviders.SingleIncludeSourcePathNonRelativeSourceProvider
getKeyName, getKeyName, getSource
-
Methods inherited from class com.scriptbasic.sourceproviders.AbstractSingleIncludeSourcePathSourceProvider
get, get, getSingleInclude, setSingleInclude
-
Methods inherited from class com.scriptbasic.sourceproviders.AbstractSourcePathSourceProvider
getSourcePath, setSourcePath
-
-
-
-
Method Detail
-
getSource
public SourceReader getSource(java.lang.String sourceName) throws java.io.IOException
- Specified by:
getSourcein classSingleIncludeSourcePathNonRelativeSourceProvider- Throws:
java.io.IOException
-
-