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

## org.jboss.portal.format.template
Class TemplateParser

    java.lang.Object
      org.jboss.portal.format.template.TemplateParser

All Implemented Interfaces:
  TemplateAnalyzerConstants

    public final class TemplateParser

extends java.lang.Object
implements TemplateAnalyzerConstants

Author:
  Julien Viet

Field Summary

Fields inherited from interface org.jboss.portal.format.template.TemplateAnalyzerConstants
`BEGIN, DEFAULT, END, EOF, LITTERAL, NEWLINE, PROPERTY, REF, TEXT, tokenImage`

Constructor Summary
`TemplateParser(java.io.File source)`
`TemplateParser(java.io.Reader source)`
`TemplateParser(java.lang.String source)`

Method Summary
`void` | `close()`
`org.dom4j.Document` | `parse()` This method should be called only once.

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

Constructor Detail

### TemplateParser

    public TemplateParser(java.io.File source)
                   throws java.io.FileNotFoundException

Throws:
  `java.io.FileNotFoundException`

### TemplateParser

    public TemplateParser(java.lang.String source)

### TemplateParser

    public TemplateParser(java.io.Reader source)

Method Detail

### parse

    public org.dom4j.Document parse()
                             throws ParseException

  This method should be called only once. If it is called more than once there are no garanty on the result.

  Throws:
    `ParseException`

### close

    public void close()

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