public abstract class DefaultFragmentParser<T> extends DefaultHandler implements FragmentParser<T>
Constructor and Description |
---|
DefaultFragmentParser(String elementName) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
protected abstract void |
delegateDone() |
void |
endElement(String uri,
String localName,
String qName) |
protected FragmentParser<?> |
getDelegate() |
protected void |
handleCharacters(char[] ch,
int start,
int length) |
protected abstract void |
initialise(Attributes attributes) |
boolean |
isDone() |
protected abstract FragmentParser<?> |
newDelegate(String uri,
String localName,
String qName,
Attributes attributes) |
protected void |
setDelegate(FragmentParser<?> delegate) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
public DefaultFragmentParser(String elementName)
public final void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public final void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public final void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
protected void handleCharacters(char[] ch, int start, int length) throws SAXException
SAXException
protected FragmentParser<?> getDelegate()
protected void setDelegate(FragmentParser<?> delegate)
protected abstract void initialise(Attributes attributes)
protected abstract FragmentParser<?> newDelegate(String uri, String localName, String qName, Attributes attributes) throws SAXException
SAXException
protected abstract void delegateDone()
public boolean isDone()
isDone
in interface FragmentParser<T>
Copyright © 2003–2017 Atlassian. All rights reserved.