com.sun.msv.writer
Class ContentHandlerAdaptor
- DocumentHandler
public class ContentHandlerAdaptor
implements DocumentHandler
Adapt SAX2 ContentHandler as a SAX1 DocumentHandler.
This class wraps a ContentHandler and makes it act as a DocumentHandler.
void | characters(ch[] , int start, int length)- Adapt a SAX1 characters event.
|
void | endDocument()- Adapt a SAX1 end document event.
|
void | endElement(String qName)- Adapt a SAX1 end element event.
|
void | ignorableWhitespace(ch[] , int start, int length)- Adapt a SAX1 ignorable whitespace event.
|
void | processingInstruction(String target, String data)- Adapt a SAX1 processing instruction event.
|
void | setDocumentLocator(Locator locator)- Adapt a SAX1 document locator event.
|
void | startDocument()- Adapt a SAX1 start document event.
|
void | startElement(String qName, AttributeList qAtts)- Adapt a SAX1 startElement event.
|
ContentHandlerAdaptor
public ContentHandlerAdaptor(ContentHandler handler)
characters
public void characters(ch[] ,
int start,
int length)
throws SAXException Adapt a SAX1 characters event.
start - The starting position in the array.length - The number of characters to use.
org.xml.sax.DocumentHandler.characters
endDocument
public void endDocument()
throws SAXException Adapt a SAX1 end document event.
org.xml.sax.DocumentHandler.endDocument
endElement
public void endElement(String qName)
throws SAXException Adapt a SAX1 end element event.
qName - The qualified (prefixed) name.
org.xml.sax.DocumentHandler.endElement
ignorableWhitespace
public void ignorableWhitespace(ch[] ,
int start,
int length)
throws SAXException Adapt a SAX1 ignorable whitespace event.
start - The starting position in the array.length - The number of characters to use.
org.xml.sax.DocumentHandler.ignorableWhitespace
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException Adapt a SAX1 processing instruction event.
target - The processing instruction target.data - The remainder of the processing instruction
org.xml.sax.DocumentHandler.processingInstruction
setDocumentLocator
public void setDocumentLocator(Locator locator)
Adapt a SAX1 document locator event.
locator - A document locator.
org.xml.sax.ContentHandler.setDocumentLocator
startDocument
public void startDocument()
throws SAXException Adapt a SAX1 start document event.
org.xml.sax.DocumentHandler.startDocument
startElement
public void startElement(String qName,
AttributeList qAtts)
throws SAXException Adapt a SAX1 startElement event.
If necessary, perform Namespace processing.
qName - The qualified (prefixed) name.qAtts - The XML 1.0 attribute list (with qnames).