@Title(value="String Parser") @Description(value="Parses new line separated strings") public class StringParser extends java.lang.Object implements Parser
Modifier and Type | Class and Description |
---|---|
static class |
StringParser.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.regex.Matcher |
comment
Comment pattern.
|
(package private) boolean |
trimWhitespace
Flag to trim whitespace.
|
Constructor and Description |
---|
StringParser(java.util.regex.Pattern comment,
boolean trimWhitespace)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Perform cleanup operations after parsing.
|
MultipleObjectsBundle |
parse(java.io.InputStream in)
Returns a list of the objects parsed from the specified input stream.
|
java.util.regex.Matcher comment
boolean trimWhitespace
public StringParser(java.util.regex.Pattern comment, boolean trimWhitespace)
comment
- Pattern for comments.trimWhitespace
- Trim leading and trailing whitespace.public MultipleObjectsBundle parse(java.io.InputStream in)
Parser
Copyright © 2019 ELKI Development Team. License information.