Class FileSource
java.lang.Object
ca.mcscert.jpipe.compiler.model.Source<InputStream>
ca.mcscert.jpipe.compiler.steps.io.sources.FileSource
Pipeline source that opens a file and provides it as an
InputStream.
Passing CompilationConfig.STDIN reads from standard input instead.-
Nested Class Summary
Nested classes/interfaces inherited from class Source
Source.Provider<I> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprovideFrom(String sourceName) ReadsourceNameand produce the initial pipeline value.
-
Constructor Details
-
FileSource
public FileSource()
-
-
Method Details
-
provideFrom
Description copied from class:SourceReadsourceNameand produce the initial pipeline value.- Specified by:
provideFromin classSource<InputStream>- Parameters:
sourceName- path to the input file.- Returns:
- an instance of
I. - Throws:
IOException- if the file cannot be read.
-