org.webmacro.parser
Class WMParser

java.lang.Object
  |
  +--org.webmacro.parser.WMParser
All Implemented Interfaces:
Parser

public class WMParser
extends java.lang.Object
implements Parser


Constructor Summary
WMParser(Broker b)
           
 
Method Summary
 java.lang.String getParserName()
          Return a short name that identifies this parser.
 BlockBuilder parseBlock(java.lang.String name, java.io.Reader in)
          Parse a block that appears on the supplied input Reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMParser

public WMParser(Broker b)
Method Detail

getParserName

public final java.lang.String getParserName()
Return a short name that identifies this parser. This name could, for example, be used as the extension for files which contain syntax parsable by this parser.

parseBlock

public BlockBuilder parseBlock(java.lang.String name,
                               java.io.Reader in)
                        throws ParseException,
                               java.io.IOException
Parse a block that appears on the supplied input Reader. The name supplied is used in error messages to identify the source being parsed.
Specified by:
parseBlock in interface Parser