MockHandlerpublic class MockHandler extends Object implements ErrorHandler, DocumentHandler, LexicalHandler, DTDHandler, ContentHandlerA helper class that implements the various SAX callback interfaces and logs
method calls. |
Fields Summary |
---|
private MethodLogger | logger |
Constructors Summary |
---|
public MockHandler(MethodLogger logger)
super();
this.logger = logger;
|
Methods Summary |
---|
public void | characters(char[] ch, int start, int length)
logger.add("characters", ch, start, length);
| public void | comment(char[] ch, int start, int length)
logger.add("comment", ch, start, length);
| public void | endCDATA()
logger.add("endCDATA");
| public void | endDTD()
logger.add("endDTD");
| public void | endDocument()
logger.add("endDocument");
| public void | endElement(java.lang.String name)
logger.add("endElement", name);
| public void | endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
logger.add("endElement", uri, localName, name);
| public void | endEntity(java.lang.String name)
logger.add("endEntity", name);
| public void | endPrefixMapping(java.lang.String prefix)
logger.add("endPrefixMapping", prefix);
| public void | error(org.xml.sax.SAXParseException exception)
logger.add("error", exception);
| public void | fatalError(org.xml.sax.SAXParseException exception)
logger.add("fatalError", exception);
| public void | ignorableWhitespace(char[] ch, int start, int length)
logger.add("ignorableWhitespace", ch, start, length);
| public void | notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
logger.add("notationDecl", name, publicId, systemId);
| public void | processingInstruction(java.lang.String target, java.lang.String data)
logger.add("processingInstruction", target, data);
| public void | setDocumentLocator(org.xml.sax.Locator locator)
logger.add("setDocumentLocator", locator);
| public void | skippedEntity(java.lang.String name)
logger.add("skippedEntity", name);
| public void | startCDATA()
logger.add("startCDATA");
| public void | startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
logger.add("startDTD", name, publicId, systemId);
| public void | startDocument()
logger.add("startDocument");
| public void | startElement(java.lang.String name, org.xml.sax.AttributeList atts)
logger.add("startElement", name, atts);
| public void | startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)
logger.add("startElement", uri, localName, name, atts);
| public void | startEntity(java.lang.String name)
logger.add("startEntity", name);
| public void | startPrefixMapping(java.lang.String prefix, java.lang.String uri)
logger.add("startPrefixMapping", prefix, uri);
| public void | unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName)
logger.add("unparsedEntityDecl", name, publicId, systemId, notationName);
| public void | warning(org.xml.sax.SAXParseException exception)
logger.add("warning", exception);
|
|