public class DelimitedTextSequencer extends AbstractTextSequencer
regular-expression pattern
to split incoming rows
into columns. By default, this class uses the pattern ","
to parse files on commas.AbstractTextSequencer
,
Pattern
Sequencer.Context
Constructor and Description |
---|
DelimitedTextSequencer() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
parseLine(String line)
Parse the given row into its constituent columns.
|
void |
setSplitPattern(String regularExpression)
Sets the regular expression to use to split incoming rows.
|
execute, getCommentMarker, getMaximumLinesToRead, getRowFactoryClassName, initialize, setCommentMarker, setMaximumLinesToRead, setRowFactoryClassName
getAcceptedMimeTypes, getLogger, getName, getPathExpressions, getRepositoryName, getUniqueId, hasAcceptedMimeTypes, isAccepted, registerDefaultMimeTypes, registerNamespace, registerNodeTypes, registerNodeTypes, toString
public void setSplitPattern(String regularExpression) throws PatternSyntaxException
regularExpression
- the regular expression to use to split incoming rows; may not be null.PatternSyntaxException
- if regularExpression
does not represent a valid regular expression that can be
compiled into a pattern
.protected String[] parseLine(String line)
AbstractTextSequencer
parseLine
in class AbstractTextSequencer
line
- the row to be parsedCopyright © 2008-2015 JBoss, a division of Red Hat. All Rights Reserved.