org.exolab.castor.xml

Class DebugHandler

public class DebugHandler extends Object implements DocumentHandler

A Simple DocumentHandler that intercepts SAX events and prints them to the console

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:09 $

Author: Keith Visco

Field Summary
booleannewLine
DocumentHandler_handler
The DocumentHandler to forward events to
Writer_out
The writer to report events to
Constructor Summary
DebugHandler(DocumentHandler handler)
Creates a new DebugHandler which forwards events to the given document handler
DebugHandler(DocumentHandler handler, Writer out)
Creates a new DebugHandler which forwards events to the given document handler
Method Summary
voidcharacters(char[] ch, int start, int length)
voidendDocument()
voidendElement(String name)
voidignorableWhitespace(char[] ch, int start, int length)
voidprocessingInstruction(String target, String data)
voidsetDocumentLocator(Locator locator)
voidstartDocument()
voidstartElement(String name, AttributeList atts)

Field Detail

newLine

boolean newLine

_handler

DocumentHandler _handler
The DocumentHandler to forward events to

_out

Writer _out
The writer to report events to

Constructor Detail

DebugHandler

public DebugHandler(DocumentHandler handler)
Creates a new DebugHandler which forwards events to the given document handler

Parameters: handler the DocumentHandler to forward events to

DebugHandler

public DebugHandler(DocumentHandler handler, Writer out)
Creates a new DebugHandler which forwards events to the given document handler

Parameters: handler the DocumentHandler to forward events to out the Writer to print debug information to

Method Detail

characters

public void characters(char[] ch, int start, int length)

endDocument

public void endDocument()

endElement

public void endElement(String name)

ignorableWhitespace

public void ignorableWhitespace(char[] ch, int start, int length)

processingInstruction

public void processingInstruction(String target, String data)

setDocumentLocator

public void setDocumentLocator(Locator locator)

startDocument

public void startDocument()

startElement

public void startElement(String name, AttributeList atts)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com