Class TextParser
- java.lang.Object
-
- ch.sahits.game.openpatrician.utilities.service.TextParser
-
@Service public class TextParser extends java.lang.Object
Parser taking a plain text property file and parse it to a list ofHeading
s andParagraph
s.
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.
-
-
-
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.
-
-