org.zkoss.zuss.impl.in
Class Parser

java.lang.Object
  extended by org.zkoss.zuss.impl.in.Parser

public class Parser
extends java.lang.Object

The ZUSS parser.

Author:
tomyeh

Constructor Summary
Parser(java.io.Reader in, Locator loc, java.lang.String filename)
          Parser.
 
Method Summary
 java.lang.String getFilename()
          Returns the name of the file being parsed.
 ZussDefinition parse()
          Parses the ZUSS style sheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(java.io.Reader in,
              Locator loc,
              java.lang.String filename)
Parser.

Parameters:
loc - the locator used to locate the resource included by @include. It can't be null if @include is used.
filename - the ZUSS's filename. It is used only to display the error message. Ignored if null.
Method Detail

getFilename

public java.lang.String getFilename()
Returns the name of the file being parsed.


parse

public ZussDefinition parse()
                     throws java.io.IOException
Parses the ZUSS style sheet.

Notice that this method can be called only once.

Throws:
java.io.IOException


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.