com.tekann.webservice.client.parser
Class AnswerParser

java.lang.Object
  extended by totalcross.xml.XmlTokenizer
      extended by com.tekann.webservice.client.parser.AnswerParser
Direct Known Subclasses:
Base64AnswerParser, DBMessageParser, DTOParser, PDAContextParser, SyncQueryParser, SyncTablesParser, TableRangesParser

public abstract class AnswerParser
extends totalcross.xml.XmlTokenizer

This class can be used to implement a parser

Author:
evandro

Constructor Summary
AnswerParser()
           
AnswerParser(totalcross.io.Stream stream)
          Creates a new instance of AnswerParser
 
Method Summary
 void foundAttributeName(byte[] buffer, int offset, int count)
           
 void foundAttributeValue(byte[] buffer, int offset, int count, byte dlm)
           
 void foundCharacter(char charFound)
           
 void foundCharacterData(byte[] buffer, int offset, int count)
           
 void foundEndEmptyTag()
           
 void foundEndTagName(byte[] buffer, int offset, int count)
           
 void foundStartTagName(byte[] buffer, int offset, int count)
           
 void parse()
           
 void parse(totalcross.io.Stream stream)
           
 void setStream(totalcross.io.Stream stream)
           
abstract  java.lang.Object storeAnswer()
          Store the answer somehow
 
Methods inherited from class totalcross.xml.XmlTokenizer
disableReferenceResolution, getAbsoluteOffset, hashCode, isDataCDATA, resolveCharacterReference, setStrictlyXml, tokenize, tokenize, tokenize, tokenize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnswerParser

public AnswerParser(totalcross.io.Stream stream)
Creates a new instance of AnswerParser

Parameters:
stream -

AnswerParser

public AnswerParser()
Method Detail

setStream

public void setStream(totalcross.io.Stream stream)

foundAttributeName

public void foundAttributeName(byte[] buffer,
                               int offset,
                               int count)
Overrides:
foundAttributeName in class totalcross.xml.XmlTokenizer

foundAttributeValue

public void foundAttributeValue(byte[] buffer,
                                int offset,
                                int count,
                                byte dlm)
Overrides:
foundAttributeValue in class totalcross.xml.XmlTokenizer

foundCharacter

public void foundCharacter(char charFound)
Overrides:
foundCharacter in class totalcross.xml.XmlTokenizer

foundCharacterData

public void foundCharacterData(byte[] buffer,
                               int offset,
                               int count)
Overrides:
foundCharacterData in class totalcross.xml.XmlTokenizer

foundEndEmptyTag

public void foundEndEmptyTag()
Overrides:
foundEndEmptyTag in class totalcross.xml.XmlTokenizer

foundEndTagName

public void foundEndTagName(byte[] buffer,
                            int offset,
                            int count)
Overrides:
foundEndTagName in class totalcross.xml.XmlTokenizer

foundStartTagName

public void foundStartTagName(byte[] buffer,
                              int offset,
                              int count)
Overrides:
foundStartTagName in class totalcross.xml.XmlTokenizer

parse

public void parse(totalcross.io.Stream stream)
           throws totalcross.xml.SyntaxException,
                  totalcross.io.IOException
Throws:
totalcross.xml.SyntaxException
totalcross.io.IOException

parse

public void parse()
           throws totalcross.xml.SyntaxException,
                  totalcross.io.IOException
Throws:
totalcross.xml.SyntaxException
totalcross.io.IOException

storeAnswer

public abstract java.lang.Object storeAnswer()
Store the answer somehow

Returns: