public class XmlSaxHandler
extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
XmlSaxHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
It fills the newlly created record with values form the xml file if
of course the cells array isnt null
For params look the android documentation on SAX Parser Handlers
|
java.lang.String[] |
GetCells()
Gets Cells which exist in the xml file
|
java.lang.String |
getElement()
Gets the element which is the start of a row
|
java.util.List<java.lang.String[]> |
GetRecords()
The Records contained in the xml file
|
void |
setCells(java.lang.String[] cel)
Sets cells which the handler will search for in the xml file
|
void |
setElemnt(java.lang.String tele)
Sets the element which indicates the start of a row
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
It initializes a new record in the records list
|
public java.util.List<java.lang.String[]> GetRecords()
public java.lang.String[] GetCells()
public void setCells(java.lang.String[] cel)
public void setElemnt(java.lang.String tele)
public java.lang.String getElement()
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException