Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.services
Class SaxTemplateParser

    java.lang.Object
      org.apache.tapestry5.internal.services.SaxTemplateParser

    public class SaxTemplateParser

extends java.lang.Object

SAX-based template parser logic, taking a `Resource` to a Tapestry template file and returning a `ComponentTemplate`.

Earlier versions of this code used the StAX (streaming XML parser), but that was really, really bad for Google App Engine. This version uses SAX under the covers, but kind of replicates the important bits of the StAX API as `XMLTokenStream`.

Since:
  5.2.0

Field Summary
`static java.lang.String` | `XML_NAMESPACE_URI`

Constructor Summary
`SaxTemplateParser(Resource resource, java.util.Map<java.lang.String,java.net.URL> publicIdToURL)`

Method Summary
`ComponentTemplate` | `parse(boolean compressWhitespace)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### XML_NAMESPACE_URI

    public static final java.lang.String XML_NAMESPACE_URI

See Also:
  Constant Field Values

Constructor Detail

### SaxTemplateParser

    public SaxTemplateParser(Resource resource,
                             java.util.Map<java.lang.String,java.net.URL> publicIdToURL)

Method Detail

### parse

    public ComponentTemplate parse(boolean compressWhitespace)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.