org.kxml.wap
Class WbxmlParser

java.lang.Object
  extended by org.kxml.parser.AbstractXmlParser
      extended by org.kxml.wap.WbxmlParser
Direct Known Subclasses:
WmlParser

public class WbxmlParser
extends AbstractXmlParser

Still Todo:


Field Summary
 
Fields inherited from class org.kxml.parser.AbstractXmlParser
processNamespaces
 
Constructor Summary
WbxmlParser(java.io.InputStream in)
           
 
Method Summary
 ParseEvent parseWapExtension(int id)
          For handling wap extensions in attributes, overwrite this method, call super and return a corresponding TextEvent.
 ParseEvent peek()
          reads the next event available from the parser without consuming it
 ParseEvent read()
          reads the next event available from the parser.
 java.util.Vector readAttr()
           
 void setAttrStartTable(int page, java.lang.String[] attrStartTable)
          Sets the attribute start Table for a given page.
 void setAttrValueTable(int page, java.lang.String[] attrStartTable)
          Sets the attribute value Table for a given page.
 void setTagTable(int page, java.lang.String[] tagTable)
          Sets the tag table for a given page.
 
Methods inherited from class org.kxml.parser.AbstractXmlParser
getLineNumber, ignoreTree, peek, read, readText, readTree, setProcessNamespaces, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WbxmlParser

public WbxmlParser(java.io.InputStream in)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

peek

public ParseEvent peek()
                throws java.io.IOException
Description copied from class: AbstractXmlParser
reads the next event available from the parser without consuming it

Specified by:
peek in class AbstractXmlParser
Throws:
java.io.IOException

read

public ParseEvent read()
                throws java.io.IOException
Description copied from class: AbstractXmlParser
reads the next event available from the parser. If the end of the parsed stream has been reached, null is returned.

Specified by:
read in class AbstractXmlParser
Throws:
java.io.IOException

parseWapExtension

public ParseEvent parseWapExtension(int id)
                             throws java.io.IOException
For handling wap extensions in attributes, overwrite this method, call super and return a corresponding TextEvent.

Throws:
java.io.IOException

readAttr

public java.util.Vector readAttr()
                          throws java.io.IOException
Throws:
java.io.IOException

setTagTable

public void setTagTable(int page,
                        java.lang.String[] tagTable)
Sets the tag table for a given page. The first string in the array defines tag 5, the second tag 6 etc. Currently, only page 0 is supported


setAttrStartTable

public void setAttrStartTable(int page,
                              java.lang.String[] attrStartTable)
Sets the attribute start Table for a given page. The first string in the array defines attribute 5, the second attribute 6 etc. Currently, only page 0 is supported. Please use the character '=' (without quote!) as delimiter between the attribute name and the (start of the) value


setAttrValueTable

public void setAttrValueTable(int page,
                              java.lang.String[] attrStartTable)
Sets the attribute value Table for a given page. The first string in the array defines attribute value 0x85, the second attribute value 0x86 etc. Currently, only page 0 is supported.