|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.msv.writer.ContentHandlerAdaptor
Adapt SAX2 ContentHandler as a SAX1 DocumentHandler. This class wraps a ContentHandler and makes it act as a DocumentHandler.
| Constructor Summary | |
ContentHandlerAdaptor(ContentHandler handler)
|
|
| Method Summary | |
void |
characters(char[] 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(char[] 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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContentHandlerAdaptor(ContentHandler handler)
| Method Detail |
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface DocumentHandlerlocator - A document locator.ContentHandler.setDocumentLocator(org.xml.sax.Locator)
public void startDocument()
throws SAXException
startDocument in interface DocumentHandlerSAXException - The client may raise a
processing exception.DocumentHandler.startDocument()
public void endDocument()
throws SAXException
endDocument in interface DocumentHandlerSAXException - The client may raise a
processing exception.DocumentHandler.endDocument()
public void startElement(String qName,
AttributeList qAtts)
throws SAXException
If necessary, perform Namespace processing.
startElement in interface DocumentHandlerqName - The qualified (prefixed) name.qAtts - The XML 1.0 attribute list (with qnames).
public void endElement(String qName)
throws SAXException
endElement in interface DocumentHandlerqName - The qualified (prefixed) name.SAXException - The client may raise a
processing exception.DocumentHandler.endElement(java.lang.String)
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface DocumentHandlerch - An array of characters.start - The starting position in the array.length - The number of characters to use.SAXException - The client may raise a
processing exception.DocumentHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface DocumentHandlerch - An array of characters.start - The starting position in the array.length - The number of characters to use.SAXException - The client may raise a
processing exception.DocumentHandler.ignorableWhitespace(char[], int, int)
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface DocumentHandlertarget - The processing instruction target.data - The remainder of the processing instructionSAXException - The client may raise a
processing exception.DocumentHandler.processingInstruction(java.lang.String, java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||