Class TextParser


  • @Service
    public class TextParser
    extends java.lang.Object
    Parser taking a plain text property file and parse it to a list of Headings and Paragraphs.
    Headings and Paragraphs are delimited by a line break. A heading is marked by enclosing '='. A line can be marked as centered by enclosing it in '[c]'.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Jul 10, 2013
    • Constructor Summary

      Constructors 
      Constructor Description
      TextParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Text parse​(java.io.InputStream is)
      Parse the content of an input stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextParser

        public TextParser()
    • Method Detail

      • parse

        public Text parse​(java.io.InputStream is)
        Parse the content of an input stream.
        Parameters:
        is - InputStream to be parsed.
        Returns:
        parsed content in the form of a Text object.