Package org.zkoss.web.servlet.dsp.impl

## Class Parser

- java.lang.Object
- - org.zkoss.web.servlet.dsp.impl.Parser

-     public class Parser
      extends java.lang.Object

  Used to parse a DSP page into a meta format called `Interpretation`.
  Author:
    tomyeh

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Parser()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Interpretation` | `parse​(java.lang.String content, java.lang.String ctype, XelContext xelc, Locator loc)` | Parses the content into a meta format

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Parser

          public Parser()

  - ### Method Detail

    - #### parse

          public Interpretation parse​(java.lang.String content,
                                      java.lang.String ctype,
                                      XelContext xelc,
                                      Locator loc)
                               throws DspException,
                                      java.io.IOException,
                                      XelException

      Parses the content into a meta format
      Parameters:
        `content` - the content to parse; never null.
        `ctype` - the content type. Optional. It is used only if no page action at all. If it is not specified and not page action, "text/html" is assumed.
        `xelc` - the context information used to parse XEL expressions in the content.
        `loc` - used to locate the resource such as taglib. It could null only if DSP contains no such resource.
      Throws:
        `DspException`
        `java.io.IOException`
        `XelException`