public class TransactionsParser extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODING
The character encoding used for the reporfile: ISO-8859-1.
|
String |
xmlHeader
The XML header used for the reportfile.
|
| Constructor and Description |
|---|
TransactionsParser(UserTransactionInfo uti)
Creates new TransactionParser object.
|
TransactionsParser(UserTransactionInfo uti,
Consultant consultant)
Creates new TransactionParser object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Overrides a method of org.xml.sax.helpers.DefaultHandler.
|
void |
endElement(String nameSpaceURI,
String localName,
String name)
Overrides a method of org.xml.sax.helpers.DefaultHandler.
|
void |
error(SAXParseException e)
Overrides a method of org.xml.sax.helpers.DefaultHandler.
|
(package private) String |
getExceptionPage()
Accessor for exceptionPage.
|
void |
parse(Reader input)
Parse xml and execute transactions accordingly.
|
void |
startElement(String nameSpaceURI,
String localName,
String name,
Attributes attributes)
Overrides a method of org.xml.sax.helpers.DefaultHandler.
|
void |
warning(SAXParseException e)
Overrides a method of org.xml.sax.helpers.DefaultHandler.
|
endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclpublic static final String ENCODING
public final String xmlHeader
public TransactionsParser(UserTransactionInfo uti, Consultant consultant)
consultant - The intermediate import object. Used to set and get status from and set and get objects to and from.uti - - UserTransactionInfo object which contains a collection in
which all transactions for a user are listed.public TransactionsParser(UserTransactionInfo uti)
uti - - UserTransactionInfo object which contains a collection in
which all transactions for a user are listed.public void startElement(String nameSpaceURI, String localName, String name, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlernameSpaceURI - - see org.xml.sax.ContentHandlerlocalName - - see org.xml.sax.ContentHandlername - - The element type name.attributes - - The specified or defaulted attributes.SAXException - - Any SAX exception, possibly wrapping another
exception.public void endElement(String nameSpaceURI, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlernameSpaceURI - - see org.xml.sax.ContentHandlerlocalName - - see org.xml.sax.ContentHandlername - - The element type name.SAXException - - Any SAX exception, possibly wrapping another exception.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerch - - The characters from the XML document.start - - The start position in the array.length - - The number of characters to read from the array.SAXException - - Any SAX exception, possibly wrapping another
exception.public void error(SAXParseException e) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlere - cSAXException - - Any SAX exception, possibly wrapping another exception.public void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlere - - Any SAX exception, possibly wrapping another exception.SAXException - - Any SAX exception, possibly wrapping another exception.public void parse(Reader input) throws IOException, TransactionHandlerException
input - The input source.TransactionHandlerException - Except for IO exceptions every exception is wrapped in a TransactionException.IOException - If an IO problem occurs while reading the XML data.String getExceptionPage()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}