anvil.parser
Class Parser

java.lang.Object
  |
  +--anvil.parser.Parser
All Implemented Interfaces:
Locator

public class Parser
extends java.lang.Object
implements Locator

class Parser


Constructor Summary
Parser()
           
 
Method Summary
protected  void dispatchElements()
           
static java.lang.String getAttributeValue(java.lang.String data, java.lang.String attribute)
           
 Location getLocation()
           
 void parse(DocumentHandler documentHandler, InputSource source)
           
 void parse(DocumentHandler documentHandler, java.net.URL url, java.lang.CharSequence sequence)
           
 void parse(DocumentHandler documentHandler, java.net.URL url, LocatingCharSequence sequence)
           
protected  void readCDataSection()
           
protected  void readCharacters(int ch)
           
protected  void readComment(int prefix)
           
 void readPI()
           
protected  Tag readTag()
           
protected  boolean skipSpaces()
           
 
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

readCDataSection

protected void readCDataSection()
                         throws java.io.IOException
java.io.IOException

readComment

protected void readComment(int prefix)
                    throws java.io.IOException
java.io.IOException

skipSpaces

protected boolean skipSpaces()
                      throws java.io.IOException
java.io.IOException

readCharacters

protected void readCharacters(int ch)
                       throws java.io.IOException
java.io.IOException

readPI

public void readPI()
            throws java.io.IOException
java.io.IOException

readTag

protected Tag readTag()
               throws java.io.IOException
java.io.IOException

dispatchElements

protected void dispatchElements()
                         throws java.io.IOException
java.io.IOException

getLocation

public Location getLocation()
Specified by:
getLocation in interface Locator

parse

public void parse(DocumentHandler documentHandler,
                  InputSource source)
           throws java.io.IOException
java.io.IOException

parse

public void parse(DocumentHandler documentHandler,
                  java.net.URL url,
                  java.lang.CharSequence sequence)
           throws java.io.IOException
java.io.IOException

parse

public void parse(DocumentHandler documentHandler,
                  java.net.URL url,
                  LocatingCharSequence sequence)
           throws java.io.IOException
java.io.IOException

getAttributeValue

public static java.lang.String getAttributeValue(java.lang.String data,
                                                 java.lang.String attribute)