public class RootHandler extends Handler
Constructor and Description |
---|
RootHandler(org.w3c.dom.Node root)
Constructor - creates parser for this document using document descriptor
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns repetitions value
|
boolean |
isThisHandler(StreamParser tmp,
boolean dummy)
Determines whether this is current record or not
|
void |
process(java.io.Reader message,
java.io.PrintWriter output)
process - reads in a Reader and parses it
|
void |
process(StreamParser sp,
java.io.PrintWriter sb)
Dummy methods
|
java.lang.String |
process(java.lang.String message,
java.io.PrintWriter output)
process - reads in a text message and parses it
|
void |
setCount(int i)
Sets repetitions value
|
getAttribute, getIntAttribute, isOptional, padChar
public RootHandler(org.w3c.dom.Node root)
root
- - the descriptor nodepublic java.lang.String process(java.lang.String message, java.io.PrintWriter output)
message
- - the input messageoutput
- - StringBuffer to contain the eventual output formatpublic void process(java.io.Reader message, java.io.PrintWriter output)
message
- - the input readeroutput
- - StringBuffer to contain the eventual output formatpublic void process(StreamParser sp, java.io.PrintWriter sb)
sp
- the inputsb
- the outputpublic boolean isThisHandler(StreamParser tmp, boolean dummy)
Handler
tmp
- the message.dummy
- whether to rewind to the beginning of the stream or notpublic void setCount(int i)
public int getCount()