com.sun.msv.writer
public class ContentHandlerAdaptor extends java.lang.Object implements org.xml.sax.DocumentHandler
Constructor and Description |
---|
ContentHandlerAdaptor(org.xml.sax.ContentHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Adapt a SAX1 characters event.
|
void |
endDocument()
Adapt a SAX1 end document event.
|
void |
endElement(java.lang.String qName)
Adapt a SAX1 end element event.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Adapt a SAX1 ignorable whitespace event.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Adapt a SAX1 processing instruction event.
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Adapt a SAX1 document locator event.
|
void |
startDocument()
Adapt a SAX1 start document event.
|
void |
startElement(java.lang.String qName,
org.xml.sax.AttributeList qAtts)
Adapt a SAX1 startElement event.
|
public ContentHandlerAdaptor(org.xml.sax.ContentHandler handler)
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.DocumentHandler
locator
- A document locator.ContentHandler.setDocumentLocator(org.xml.sax.Locator)
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
- The client may raise a
processing exception.DocumentHandler.startDocument()
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
- The client may raise a
processing exception.DocumentHandler.endDocument()
public void startElement(java.lang.String qName, org.xml.sax.AttributeList qAtts) throws org.xml.sax.SAXException
If necessary, perform Namespace processing.
startElement
in interface org.xml.sax.DocumentHandler
qName
- The qualified (prefixed) name.qAtts
- The XML 1.0 attribute list (with qnames).org.xml.sax.SAXException
public void endElement(java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.DocumentHandler
qName
- The qualified (prefixed) name.org.xml.sax.SAXException
- The client may raise a
processing exception.DocumentHandler.endElement(java.lang.String)
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.DocumentHandler
ch
- An array of characters.start
- The starting position in the array.length
- The number of characters to use.org.xml.sax.SAXException
- The client may raise a
processing exception.DocumentHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.DocumentHandler
ch
- An array of characters.start
- The starting position in the array.length
- The number of characters to use.org.xml.sax.SAXException
- The client may raise a
processing exception.DocumentHandler.ignorableWhitespace(char[], int, int)
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.DocumentHandler
target
- The processing instruction target.data
- The remainder of the processing instructionorg.xml.sax.SAXException
- The client may raise a
processing exception.DocumentHandler.processingInstruction(java.lang.String, java.lang.String)