|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.jackrabbit.core.xml.ImportHandler
An ImportHandler
instance can be used to import serialized
data in System View XML or Document View XML. Processing of the XML is
handled by specialized ContentHandler
s
(i.e. SysViewImportHandler
and DocViewImportHandler
).
Importer
interface.
Important Note:
These SAX Event Handlers expect that Namespace URI's and local names are
reported in the start/endElement
events and that
start/endPrefixMapping
events are reported
(i.e. default SAX2 Namespace processing).
Field Summary | |
protected Importer |
importer
|
protected boolean |
initialized
|
protected Locator |
locator
|
protected org.apache.jackrabbit.core.xml.ImportHandler.NamespaceContext |
nsContext
|
protected boolean |
nsContextStarted
this flag is used to determine whether a namespace context needs to be started in the startElement event or if the namespace context has already been started in a preceeding startPrefixMapping event; the flag is set per element in the first startPrefixMapping event and is cleared again in the following startElement event; |
protected NamespaceRegistryImpl |
nsReg
|
protected NamespaceResolver |
nsResolver
|
protected boolean |
systemViewXML
|
protected ContentHandler |
targetHandler
|
Constructor Summary | |
ImportHandler(Importer importer,
NamespaceResolver nsResolver,
NamespaceRegistryImpl nsReg)
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
void |
error(SAXParseException e)
|
void |
fatalError(SAXParseException e)
|
void |
setDocumentLocator(Locator locator)
|
void |
startDocument()
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri)
|
void |
warning(SAXParseException e)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final Importer importer
protected final NamespaceRegistryImpl nsReg
protected final NamespaceResolver nsResolver
protected Locator locator
protected ContentHandler targetHandler
protected boolean systemViewXML
protected boolean initialized
protected final org.apache.jackrabbit.core.xml.ImportHandler.NamespaceContext nsContext
protected boolean nsContextStarted
Constructor Detail |
public ImportHandler(Importer importer, NamespaceResolver nsResolver, NamespaceRegistryImpl nsReg)
Method Detail |
public void warning(SAXParseException e) throws SAXException
SAXException
public void error(SAXParseException e) throws SAXException
SAXException
public void fatalError(SAXParseException e) throws SAXException
SAXException
public void startDocument() throws SAXException
SAXException
public void endDocument() throws SAXException
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
SAXException
public void endPrefixMapping(String prefix) throws SAXException
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
SAXException
public void setDocumentLocator(Locator locator)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |