|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.util.SAX2ANY
public class SAX2ANY
This class is a SAX Content Handler that build an AnyNode from a stream of SAX events (either SAX1 for compatibility or SAX2)
| Constructor Summary | |
|---|---|
SAX2ANY()
Default constructor |
|
SAX2ANY(Namespaces context,
boolean wsPreserve)
Constructs a SAX2ANY given a namespace context. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAX2ANY()
public SAX2ANY(Namespaces context,
boolean wsPreserve)
context - the namespace context in which this handler acts.wsPreserve - if white spaces whould be preserved| Method Detail |
|---|
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in interface DocumentHandlerlocator - the Locator of the current parsed inputsource
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in interface DocumentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in interface DocumentHandlerSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in interface DocumentHandlerSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in interface DocumentHandlerSAXException
public void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void startElement(String name,
AttributeList atts)
throws SAXException
DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
startElement in interface DocumentHandlerSAXException
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
startElement in interface ContentHandlerSAXException
public void endElement(String name)
throws SAXException
endElement in interface DocumentHandlerSAXException
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in interface DocumentHandlerSAXException
public void warning(SAXParseException e)
throws SAXException
warning in interface ErrorHandlerSAXException
public void error(SAXParseException e)
throws SAXException
error in interface ErrorHandlerSAXException
public void fatalError(SAXParseException e)
throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic AnyNode getStartingNode()
public Namespaces getNamespaceContext()
public void setNamespaceContext(Namespaces context)
context - the namespace context to interact with while parsing an
XML fragment with the SAX2ANY handler.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||