|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.templateparser.xmlsax.AbstractNonValidatingSAXTemplateParser
public abstract class AbstractNonValidatingSAXTemplateParser
Parses XML documents, using a standard SAX parser.
This implementation populates tree nodes with detailed location information (document name and line number).
| Constructor Summary | |
|---|---|
protected |
AbstractNonValidatingSAXTemplateParser(int poolSize)
|
| Method Summary | |
|---|---|
protected ResourcePool<SAXParser> |
createSaxParsers(int poolSize,
boolean validating)
|
protected ResourcePool<SAXParser> |
getNonValidatingPool()
|
protected ResourcePool<SAXParser> |
getPool()
|
List<Node> |
parseFragment(Configuration configuration,
String fragment)
Parses the document fragment contained in the given String object. |
Document |
parseTemplate(Configuration configuration,
String documentName,
Reader reader)
Parses the document contained in the given Reader object. |
protected abstract List<Node> |
unwrapFragment(Document document)
|
protected abstract String |
wrapFragment(String fragment)
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractNonValidatingSAXTemplateParser(int poolSize)
| Method Detail |
|---|
protected ResourcePool<SAXParser> getPool()
protected final ResourcePool<SAXParser> getNonValidatingPool()
protected final ResourcePool<SAXParser> createSaxParsers(int poolSize,
boolean validating)
public final Document parseTemplate(Configuration configuration,
String documentName,
Reader reader)
ITemplateParserParses the document contained in the given Reader object.
parseTemplate in interface ITemplateParserconfiguration - the Configuration objectdocumentName - the document name (optional).reader - the Reader on the document to be parsed (required).
public final List<Node> parseFragment(Configuration configuration,
String fragment)
ITemplateParserParses the document fragment contained in the given String object.
parseFragment in interface ITemplateParserconfiguration - the Configuration objectfragment - the String containing the fragment
protected abstract String wrapFragment(String fragment)
protected abstract List<Node> unwrapFragment(Document document)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||