|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler util.misc.AbstractXmlTvDataHandler
public abstract class AbstractXmlTvDataHandler
Constructor Summary | |
---|---|
AbstractXmlTvDataHandler()
|
Method Summary | |
---|---|
protected abstract void |
addField(ProgramFieldType fieldType,
byte[] value)
Adds a binary field to the current program |
protected abstract void |
addField(ProgramFieldType fieldType,
int value)
adds an Integer field to the current program |
protected abstract void |
addField(ProgramFieldType fieldType,
java.lang.String value)
adds a String field to the current program |
protected abstract void |
addToList(ProgramFieldType fieldType,
java.lang.String value,
java.lang.String separator)
Adds a text to a field that builds a comma separated value (e.g. the actor list). |
void |
characters(char[] ch,
int start,
int length)
Handles the occurrence of tag text by buffering it for later analysis |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Handles the occurrence of an end tag. |
protected abstract void |
endProgram()
program parsing finishes |
protected abstract java.lang.String |
getChannelCountry()
|
protected java.lang.String |
getChannelId()
XMLTV channel id of currently parsed program |
protected boolean |
isValid()
whether or not the currently parsed program is valid |
protected abstract void |
logException(java.lang.Exception exc)
|
protected abstract void |
logMessage(java.lang.String message)
|
protected abstract void |
setInfoBit(int bit)
sets a bit in the info field |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
occurrence of a start tag Here we only handle tags with attributes, all other tags are handled when they end. |
protected abstract void |
startProgram(Date startDate,
int startTime)
starts a new program |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractXmlTvDataHandler()
Method Detail |
---|
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
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected abstract void startProgram(Date startDate, int startTime)
startDate
- start date of the programstartTime
- time in minutes after midnightpublic void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected abstract java.lang.String getChannelCountry()
protected abstract void endProgram()
protected boolean isValid()
protected abstract void setInfoBit(int bit)
bit
- The bit to addprotected abstract void addField(ProgramFieldType fieldType, byte[] value)
protected abstract void addField(ProgramFieldType fieldType, java.lang.String value)
fieldType
- value
- protected abstract void addField(ProgramFieldType fieldType, int value)
fieldType
- value
- protected abstract void logMessage(java.lang.String message)
protected abstract void logException(java.lang.Exception exc)
protected final java.lang.String getChannelId()
protected abstract void addToList(ProgramFieldType fieldType, java.lang.String value, java.lang.String separator)
fieldType
- The type of the field to add the text to.value
- The text to add.separator
- separator to add after each new entry
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |