@Title(value="String Parser") @Description(value="Parses new line separated strings") public class StringParser extends Object implements Parser
Modifier and Type | Class and Description |
---|---|
static class |
StringParser.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) Pattern |
comment
Comment pattern.
|
(package private) boolean |
trimWhitespace
Flag to trim whitespace.
|
Constructor and Description |
---|
StringParser(Pattern comment,
boolean trimWhitespace)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MultipleObjectsBundle |
parse(InputStream in)
Returns a list of the objects parsed from the specified input stream.
|
Pattern comment
boolean trimWhitespace
public StringParser(Pattern comment, boolean trimWhitespace)
comment
- Pattern for comments.trimWhitespace
- Trim leading and trailing whitespace.public MultipleObjectsBundle parse(InputStream in)
Parser