| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.stax.SAX2StAXAdaptor
public final class SAX2StAXAdaptor
Lightweight adaptor which translates SAX content events into StAX form, and provides delegation and id mapping services.
| Constructor Summary | |
|---|---|
| SAX2StAXAdaptor(StAXContentHandler rootHandler)Construct a new SAX Content handler which wraps a StAX handler. | |
| SAX2StAXAdaptor(StAXContentHandler rootHandler,
                boolean checkIdsResolveFlag)Construct a new SAX Content handler which wraps a StAX handler. | |
| SAX2StAXAdaptor(StAXContentHandler rootHandler,
                boolean checkIdsResolveFlag,
                Map existingIds)Construct a new SAX Content handler which wraps a StAX handler. | |
| Method Summary | |
|---|---|
|  void | characters(char[] ch,
           int start,
           int end) | 
|  void | endDocument() | 
|  void | endElement(String nsURI,
           String localName,
           String qName) | 
|  void | endPrefixMapping(String prefix) | 
|  void | ignorableWhitespace(char[] ch,
                    int start,
                    int end) | 
|  void | processingInstruction(String target,
                      String data) | 
|  void | setDocumentLocator(Locator locator) | 
|  void | skippedEntity(String name) | 
|  void | startDocument() | 
|  void | startElement(String nsURI,
             String localName,
             String qName,
             Attributes attrs) | 
|  void | startPrefixMapping(String prefix,
                   String uri) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SAX2StAXAdaptor(StAXContentHandler rootHandler,
                       boolean checkIdsResolveFlag,
                       Map existingIds)
rootHandler - root handlercheckIdsResolveFlag - true if endDocument should throw an exception
    if there are unresolved idsexistingIds - map of existing ids to items
public SAX2StAXAdaptor(StAXContentHandler rootHandler,
                       boolean checkIdsResolveFlag)
rootHandler - root handlercheckIdsResolveFlag - true if endDocument should throw an exception
    if there are unresolved idspublic SAX2StAXAdaptor(StAXContentHandler rootHandler)
rootHandler - root handler| Method Detail | 
|---|
public void startDocument()
                   throws SAXException
startDocument in interface ContentHandlerSAXExceptionContentHandler
public void endDocument()
                 throws SAXException
endDocument in interface ContentHandlerSAXExceptionContentHandler
public void characters(char[] ch,
                       int start,
                       int end)
                throws SAXException
characters in interface ContentHandlerSAXExceptionContentHandler
public void ignorableWhitespace(char[] ch,
                                int start,
                                int end)
                         throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionContentHandler
public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionContentHandler
public void endPrefixMapping(String prefix)
                      throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionContentHandler
public void processingInstruction(String target,
                                  String data)
                           throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionContentHandlerpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerContentHandler
public void skippedEntity(String name)
                   throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionContentHandler
public void startElement(String nsURI,
                         String localName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
startElement in interface ContentHandlerSAXExceptionContentHandler
public void endElement(String nsURI,
                       String localName,
                       String qName)
                throws SAXException
endElement in interface ContentHandlerSAXExceptionContentHandler| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||