|
||||||||||
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
public class 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 Locator |
locator
|
Constructor Summary | |
---|---|
ImportHandler(Importer importer,
Session session)
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
Delegates the call to the underlying target handler and asks the handler to end the current namespace context. |
void |
error(SAXParseException e)
|
void |
fatalError(SAXParseException e)
|
void |
setDocumentLocator(Locator locator)
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri)
Records the given namespace mapping to be included in the local namespace context. |
void |
warning(SAXParseException e)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, 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 Locator locator
Constructor Detail |
---|
public ImportHandler(Importer importer, Session session) throws RepositoryException
RepositoryException
Method Detail |
---|
public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startElement(String, String, String, Attributes)
using
all the the namespace mappings recorded for the current XML element.
The namespace is also recorded in the persistent namespace registry unless it is already known.
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
prefix
- namespace prefixuri
- namespace URI
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |