org.apache.ws.jaxme.xs.util

Class LoggingContentHandler

Implemented Interfaces:
LexicalHandler

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

void
characters(char[] arg0, int arg1, int arg2)
void
comment(char[] arg0, int arg1, int arg2)
void
endCDATA()
void
endDTD()
void
endDocument()
void
endElement(String arg0, String arg1, String arg2)
void
endEntity(String arg0)
void
endPrefixMapping(String arg0)
void
ignorableWhitespace(char[] arg0, int arg1, int arg2)
void
notationDecl(String arg0, String arg1, String arg2)
void
processingInstruction(String arg0, String arg1)
void
skippedEntity(String arg0)
void
startCDATA()
void
startDTD(String arg0, String arg1, String arg2)
void
startDocument()
void
startElement(String arg0, String arg1, String arg2, Attributes arg3)
void
startEntity(String arg0)
void
startPrefixMapping(String arg0, String arg1)
void
unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3)

Constructor Details

LoggingContentHandler

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

LoggingContentHandler

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

Method Details

characters

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

comment

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

endCDATA

public void endCDATA()
            throws SAXException

endDTD

public void endDTD()
            throws SAXException

endDocument

public void endDocument()
            throws SAXException

endElement

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

endEntity

public void endEntity(String arg0)
            throws SAXException

endPrefixMapping

public void endPrefixMapping(String arg0)
            throws SAXException

ignorableWhitespace

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

notationDecl

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

processingInstruction

public void processingInstruction(String arg0,
                                  String arg1)
            throws SAXException

skippedEntity

public void skippedEntity(String arg0)
            throws SAXException

startCDATA

public void startCDATA()
            throws SAXException

startDTD

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

startDocument

public void startDocument()
            throws SAXException

startElement

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

startEntity

public void startEntity(String arg0)
            throws SAXException

startPrefixMapping

public void startPrefixMapping(String arg0,
                               String arg1)
            throws SAXException

unparsedEntityDecl

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