|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 itemspublic 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 handlerMethod Detail |
---|
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
ContentHandler
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
ContentHandler
public void characters(char[] ch, int start, int end) throws SAXException
characters
in interface ContentHandler
SAXException
ContentHandler
public void ignorableWhitespace(char[] ch, int start, int end) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
ContentHandler
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
ContentHandler
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
ContentHandler
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
ContentHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
ContentHandler
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
ContentHandler
public void startElement(String nsURI, String localName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
SAXException
ContentHandler
public void endElement(String nsURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
ContentHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |