public class SegmentHandler extends Handler
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns repetitions value
|
boolean |
isThisHandler(StreamParser sp,
boolean rewind)
isThisHandler - checks to see if next record to be parsed is contained in this
segment.
|
void |
process(StreamParser sp,
java.io.PrintWriter output)
process - reads in a text message and parses this segment from it
|
void |
setCount(int i)
Sets repetitions value
|
getAttribute, getIntAttribute, isOptional, padChar
public void process(StreamParser sp, java.io.PrintWriter output)
sp
- - the input StreamParseroutput
- - StringBuffer to contain the eventual output formatpublic boolean isThisHandler(StreamParser sp, boolean rewind)
sp
- - the StreamParser to be read fromrewind
- - not usedpublic void setCount(int i)
public int getCount()