Package it.bancaditalia.oss.vtl.engine
Interface Engine
-
- All Known Implementing Classes:
JavaVTLEngine
public interface Engine
The main parsing engine. Classes implementing this interface provide a way to translate VTL source code into VTL operations that a Transformation Scheme can be applied to.- Author:
- Valentino Pinna
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<Statement>
parseRules(InputStream inputStream, Charset charset)
Parse VTL Statements that will be read from the given input stream.Stream<Statement>
parseRules(Reader reader)
Parse VTL Statements that will be read from the given reader.Stream<Statement>
parseRules(String statements)
Parse a string containing VTL Statements.Stream<Statement>
parseRules(Path path, Charset charset)
Parse VTL Statements that will be read from a file pointed by givenPath
.
-
-
-
Method Detail
-
parseRules
Stream<Statement> parseRules(String statements)
Parse a string containing VTL Statements.- Parameters:
statements
- AString
containing valid VTL syntax.- Returns:
- A stream of statements.
-
parseRules
Stream<Statement> parseRules(Reader reader) throws IOException
Parse VTL Statements that will be read from the given reader. TheReader
will be consumed entirely and closed.- Parameters:
reader
- AReader
containing valid VTL syntax.- Returns:
- A stream of statements.
- Throws:
IOException
-
parseRules
Stream<Statement> parseRules(InputStream inputStream, Charset charset) throws IOException
Parse VTL Statements that will be read from the given input stream. TheInputStream
will be consumed entirely and closed.- Parameters:
inputStream
- AnInputStream
containing valid VTL syntax.charset
- TheCharset
to be used to translate characters from the stream.- Returns:
- A stream of statements.
- Throws:
IOException
-
parseRules
Stream<Statement> parseRules(Path path, Charset charset) throws IOException
Parse VTL Statements that will be read from a file pointed by givenPath
.- Parameters:
path
- APath
describing a local file containing valid VTL syntax.charset
- TheCharset
to be used to translate characters from the file contents.- Returns:
- A stream of statements.
- Throws:
IOException
-
-