org.apache.ws.jaxme.xs.util

Class LoggingContentHandler

public class LoggingContentHandler extends XMLFilterImpl implements LexicalHandler

A content handler, which may be used to log a stream of SAX events.
Constructor Summary
LoggingContentHandler(OutputStream pStream)
Creates a new instance, which is logging to the given output stream.
LoggingContentHandler(Writer pWriter)
Creates a new instance, which is logging to the given writer.
Method Summary
voidcharacters(char[] arg0, int arg1, int arg2)
voidcomment(char[] arg0, int arg1, int arg2)
voidendCDATA()
voidendDocument()
voidendDTD()
voidendElement(String arg0, String arg1, String arg2)
voidendEntity(String arg0)
voidendPrefixMapping(String arg0)
voidignorableWhitespace(char[] arg0, int arg1, int arg2)
voidnotationDecl(String arg0, String arg1, String arg2)
voidprocessingInstruction(String arg0, String arg1)
voidskippedEntity(String arg0)
voidstartCDATA()
voidstartDocument()
voidstartDTD(String arg0, String arg1, String arg2)
voidstartElement(String arg0, String arg1, String arg2, Attributes arg3)
voidstartEntity(String arg0)
voidstartPrefixMapping(String arg0, String arg1)
voidunparsedEntityDecl(String arg0, String arg1, String arg2, String arg3)

Constructor Detail

LoggingContentHandler

public LoggingContentHandler(OutputStream pStream)
Creates a new instance, which is logging to the given output stream.

LoggingContentHandler

public LoggingContentHandler(Writer pWriter)
Creates a new instance, which is logging to the given writer.

Parameters: pResult

Throws: SAXException

Method Detail

characters

public void characters(char[] arg0, int arg1, int arg2)

comment

public void comment(char[] arg0, int arg1, int arg2)

endCDATA

public void endCDATA()

endDocument

public void endDocument()

endDTD

public void endDTD()

endElement

public void endElement(String arg0, String arg1, String arg2)

endEntity

public void endEntity(String arg0)

endPrefixMapping

public void endPrefixMapping(String arg0)

ignorableWhitespace

public void ignorableWhitespace(char[] arg0, int arg1, int arg2)

notationDecl

public void notationDecl(String arg0, String arg1, String arg2)

processingInstruction

public void processingInstruction(String arg0, String arg1)

skippedEntity

public void skippedEntity(String arg0)

startCDATA

public void startCDATA()

startDocument

public void startDocument()

startDTD

public void startDTD(String arg0, String arg1, String arg2)

startElement

public void startElement(String arg0, String arg1, String arg2, Attributes arg3)

startEntity

public void startEntity(String arg0)

startPrefixMapping

public void startPrefixMapping(String arg0, String arg1)

unparsedEntityDecl

public void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3)