public abstract class AbstractJcrNodeParser<O> extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
detectedPrimaryType |
static String |
JCR_ROOT |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJcrNodeParser(String... primaryTypes) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract O |
getParsingResult() |
protected abstract void |
onJcrRootElement(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
onJcrRootNode(String uri,
String localName,
String qName,
Attributes attributes,
String primaryType) |
O |
parse(InputStream input) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static final String JCR_ROOT
protected String detectedPrimaryType
protected AbstractJcrNodeParser(@NotNull
String... primaryTypes)
public O parse(InputStream input) throws IOException
IOExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionprotected void onJcrRootNode(String uri, String localName, String qName, Attributes attributes, String primaryType)
protected abstract void onJcrRootElement(String uri, String localName, String qName, Attributes attributes)
protected abstract O getParsingResult()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.