org.kxml2.wap

Class WbxmlParser

public class WbxmlParser extends Object implements XmlPullParser

Field Summary
static intWAP_EXTENSION
Method Summary
voiddefineEntityReplacementText(String entity, String value)
intgetAttributeCount()
StringgetAttributeName(int index)
StringgetAttributeNamespace(int index)
StringgetAttributePrefix(int index)
StringgetAttributeType(int index)
StringgetAttributeValue(int index)
StringgetAttributeValue(String namespace, String name)
intgetColumnNumber()
intgetDepth()
intgetEventType()
booleangetFeature(String feature)
StringgetInputEncoding()
intgetLineNumber()
StringgetName()
StringgetNamespace(String prefix)
StringgetNamespace()
intgetNamespaceCount(int depth)
StringgetNamespacePrefix(int pos)
StringgetNamespaceUri(int pos)
StringgetPositionDescription()
StringgetPrefix()
ObjectgetProperty(String property)
StringgetText()
char[]getTextCharacters(int[] poslen)
booleanisAttributeDefault(int index)
booleanisEmptyElementTag()
booleanisWhitespace()
intnext()
intnextTag()
StringnextText()
intnextToken()
voidparseWapExtension(int id)
voidreadAttr()
voidrequire(int type, String namespace, String name)
voidsetAttrStartTable(int page, String[] table)
Sets the attribute start Table for a given page.
voidsetAttrValueTable(int page, String[] table)
Sets the attribute value Table for a given page.
voidsetFeature(String feature, boolean value)
voidsetInput(Reader reader)
voidsetInput(InputStream in, String enc)
voidsetProperty(String property, Object value)
voidsetTagTable(int page, String[] table)
Sets the tag table for a given page.

Field Detail

WAP_EXTENSION

public static final int WAP_EXTENSION

Method Detail

defineEntityReplacementText

public void defineEntityReplacementText(String entity, String value)

getAttributeCount

public int getAttributeCount()

getAttributeName

public String getAttributeName(int index)

getAttributeNamespace

public String getAttributeNamespace(int index)

getAttributePrefix

public String getAttributePrefix(int index)

getAttributeType

public String getAttributeType(int index)

getAttributeValue

public String getAttributeValue(int index)

getAttributeValue

public String getAttributeValue(String namespace, String name)

getColumnNumber

public int getColumnNumber()

getDepth

public int getDepth()

getEventType

public int getEventType()

getFeature

public boolean getFeature(String feature)

getInputEncoding

public String getInputEncoding()

getLineNumber

public int getLineNumber()

getName

public String getName()

getNamespace

public String getNamespace(String prefix)

getNamespace

public String getNamespace()

getNamespaceCount

public int getNamespaceCount(int depth)

getNamespacePrefix

public String getNamespacePrefix(int pos)

getNamespaceUri

public String getNamespaceUri(int pos)

getPositionDescription

public String getPositionDescription()

getPrefix

public String getPrefix()

getProperty

public Object getProperty(String property)

getText

public String getText()

getTextCharacters

public char[] getTextCharacters(int[] poslen)

isAttributeDefault

public boolean isAttributeDefault(int index)

isEmptyElementTag

public boolean isEmptyElementTag()

isWhitespace

public boolean isWhitespace()

next

public int next()

nextTag

public int nextTag()

nextText

public String nextText()

nextToken

public int nextToken()

parseWapExtension

public void parseWapExtension(int id)

readAttr

public void readAttr()

require

public void require(int type, String namespace, String name)

setAttrStartTable

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

setAttrValueTable

public void setAttrValueTable(int page, String[] table)
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.

setFeature

public void setFeature(String feature, boolean value)

setInput

public void setInput(Reader reader)

setInput

public void setInput(InputStream in, String enc)

setProperty

public void setProperty(String property, Object value)

setTagTable

public void setTagTable(int page, String[] table)
Sets the tag table for a given page. The first string in the array defines tag 5, the second tag 6 etc.