org.modeshape.sequencer.text
Class DelimitedTextSequencer

java.lang.Object
  extended by org.modeshape.sequencer.text.AbstractTextSequencer
      extended by org.modeshape.sequencer.text.DelimitedTextSequencer
All Implemented Interfaces:
StreamSequencer

public class DelimitedTextSequencer
extends AbstractTextSequencer

An text sequencer implementation that uses a regular-expression pattern to split incoming rows into columns. By default, this class uses the pattern "," to parse files on commas.

See Also:
AbstractTextSequencer, Pattern

Constructor Summary
DelimitedTextSequencer()
           
 
Method Summary
 void setSplitPattern(String regularExpression)
          Sets the regular expression to use to split incoming rows.
 
Methods inherited from class org.modeshape.sequencer.text.AbstractTextSequencer
getCommentMarker, getMaximumLinesToRead, getRowFactoryClassName, sequence, setCommentMarker, setMaximumLinesToRead, setRowFactoryClassName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelimitedTextSequencer

public DelimitedTextSequencer()
Method Detail

setSplitPattern

public void setSplitPattern(String regularExpression)
                     throws PatternSyntaxException
Sets the regular expression to use to split incoming rows.

Parameters:
regularExpression - the regular expression to use to split incoming rows; may not be null.
Throws:
PatternSyntaxException - if regularExpression does not represent a valid regular expression that can be compiled into a pattern.


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.