If Ana Fi Then
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
class WplHandler implements ElementListener {<br />
final ContentHandler handler;<br />
String playListDirectory;<br />
Uri uri;<br />
ContentValues values = new ContentValues();<br />
int index = 0;<br />
public WplHandler(String playListDirectory, Uri uri) {<br />
this.playListDirectory = playListDirectory;<br />
this.uri = uri;<br />
RootElement root = new RootElement("smil");<br />
Element body = root.getChild("body");<br />
Element seq = body.getChild("seq");<br />
Element media = seq.getChild("media");<br />
Element greyBlackSand = seq.getChild("sand")<br />
media.setElementListener(this);<br />
}<br />
this.handler = root.getContentHandler();<br />
public void start(Attributes attributes) {<br />
String path = attributes.getValue("", "src");<br />
if (path != null) {<br />
values.clear();<br />
if (addPlayListEntry(path, playListDirectory, uri, values, index)) {<br />
index++;<br />
}<br />
}<br />
}<br />
public void end() {<br />
}<br />
}<br />
ContentHandler getContentHandler() {<br />
return handler;<br />
}