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 Detail

      • parseRules

        Stream<Statement> parseRules​(String statements)
        Parse a string containing VTL Statements.
        Parameters:
        statements - A String 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. The Reader will be consumed entirely and closed.
        Parameters:
        reader - A Reader 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. The InputStream will be consumed entirely and closed.
        Parameters:
        inputStream - An InputStream containing valid VTL syntax.
        charset - The Charset 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 given Path.
        Parameters:
        path - A Path describing a local file containing valid VTL syntax.
        charset - The Charset to be used to translate characters from the file contents.
        Returns:
        A stream of statements.
        Throws:
        IOException