com.tekann.webservice.client.parser
Class TableRangesParser

java.lang.Object
  extended by totalcross.xml.XmlTokenizer
      extended by com.tekann.webservice.client.parser.AnswerParser
          extended by com.tekann.webservice.client.parser.TableRangesParser

public class TableRangesParser
extends AnswerParser

It is used to parse the tables ranges

Author:
gfrantz

Field Summary
protected  TableRange currentRange
           
protected  java.lang.String lastTableName
           
protected  totalcross.util.Hashtable ranges
           
protected  totalcross.util.Vector rangesVector
           
 
Fields inherited from class com.tekann.webservice.client.parser.AnswerParser
lastAttributeName, lastAttributeValue, lastData, lastEndTag, lastStartTag, stream
 
Constructor Summary
TableRangesParser(totalcross.io.Stream stream)
          Creates a new instance of TableRangesParser
 
Method Summary
 void foundAttributeName(byte[] buffer, int offset, int count)
           
 void foundAttributeValue(byte[] buffer, int offset, int count, byte dlm)
           
 void foundEndTagName(byte[] buffer, int offset, int count)
           
 void foundStartTagName(byte[] buffer, int offset, int count)
           
protected  void init()
          Initialize the parser
 java.lang.Object storeAnswer()
          Store the answer somehow
 
Methods inherited from class com.tekann.webservice.client.parser.AnswerParser
foundCharacter, foundCharacterData, foundEndEmptyTag, isReturn
 
Methods inherited from class totalcross.xml.XmlTokenizer
disableReferenceResolution, foundComment, foundDeclaration, foundEndOfInput, foundInvalidData, foundProcessingInstruction, foundReference, foundStartOfInput, getAbsoluteOffset, isDataCDATA, resolveCharacterReference, setCdataContents, setStrictlyXml, tokenize, tokenize, tokenize, tokenize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentRange

protected TableRange currentRange

lastTableName

protected java.lang.String lastTableName

ranges

protected totalcross.util.Hashtable ranges

rangesVector

protected totalcross.util.Vector rangesVector
Constructor Detail

TableRangesParser

public TableRangesParser(totalcross.io.Stream stream)
                  throws totalcross.xml.SyntaxException,
                         totalcross.io.IOException
Creates a new instance of TableRangesParser

Parameters:
stream -
Throws:
totalcross.xml.SyntaxException
totalcross.io.IOException
Method Detail

foundAttributeName

public void foundAttributeName(byte[] buffer,
                               int offset,
                               int count)
Overrides:
foundAttributeName in class AnswerParser

foundAttributeValue

public void foundAttributeValue(byte[] buffer,
                                int offset,
                                int count,
                                byte dlm)
Overrides:
foundAttributeValue in class AnswerParser

foundEndTagName

public void foundEndTagName(byte[] buffer,
                            int offset,
                            int count)
Overrides:
foundEndTagName in class AnswerParser

foundStartTagName

public void foundStartTagName(byte[] buffer,
                              int offset,
                              int count)
Overrides:
foundStartTagName in class AnswerParser

init

protected void init()
             throws totalcross.xml.SyntaxException,
                    totalcross.io.IOException
Description copied from class: AnswerParser
Initialize the parser

Overrides:
init in class AnswerParser
Throws:
totalcross.xml.SyntaxException
totalcross.io.IOException

storeAnswer

public java.lang.Object storeAnswer()
Description copied from class: AnswerParser
Store the answer somehow

Specified by:
storeAnswer in class AnswerParser
Returns: