Class App

java.lang.Object
be.syntra.beige.team.App

public class App
extends java.lang.Object

App

Read command from console. Create ReaderHaml Create HamlData Validate HamlData Create Html Write Html to file
Since:
2021-03-24
  • Constructor Summary

    Constructors
    Constructor Description
    App()  
  • Method Summary

    Modifier and Type Method Description
    static void compileFile​(java.lang.String input)
    First the method will set up a reader for the .haml inputfile.
    static void compileFile​(java.lang.String input, java.lang.String output)
    First the method will set up a reader for the .haml inputfile.
    static void main​(java.lang.String[] args)  

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • App

      public App()
  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Throws:
      java.io.IOException
    • compileFile

      public static void compileFile​(java.lang.String input) throws java.io.IOException
      First the method will set up a reader for the .haml inputfile. The reader will read the file and pushes every line to the haml converter so we can create a hamlDataElement for each line of the inputfile. The htmlconverter parses every hamlDataElement to a line of usable HTML code. When no outputfile was given, the writer prints the result to console.
      Parameters:
      input - filename of inputfile
      Throws:
      java.io.IOException
    • compileFile

      public static void compileFile​(java.lang.String input, java.lang.String output) throws java.io.IOException
      First the method will set up a reader for the .haml inputfile. The reader will read the file and pushes every line to the haml converter so we can create a hamlDataElement for each line of the inputfile. The htmlconverter parses every hamlDataElement to a line of usable HTML code. The writer creates (when non-existing) or modifies the given outputfile.
      Parameters:
      input - filename of inputfile
      output - filename of outputfile
      Throws:
      java.io.IOException