IRRSParser - IParser

This commit is contained in:
Emil Mogstad committed 2012-05-30 20:41:07 +02:00
1 parent aaefaed321
commit a155e9acf8
7 files changed
+7 -24

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
+1
View File
@@ -2,3 +2,4 @@ bin
gen
doc
project.properties
.classpath
-11
View File
@@ -1,11 +0,0 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-8
@@ -4,6 +4,6 @@ import java.io.Serializable;
import org.w3c.dom.NodeList;
public interface IRSSParser extends Serializable {
public interface IParser extends Serializable {
public DataHandler parse(NodeList nodes);
}
@@ -4,7 +4,7 @@ import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class RSSParserNews implements IRSSParser {
public class RSSParserNews implements IParser {
private static final long serialVersionUID = -2654591623794449527L;
private final DataHandler dh;
@@ -4,7 +4,7 @@ import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class RSSParserProgram implements IRSSParser {
public class RSSParserProgram implements IParser {
private static final long serialVersionUID = 3364287016121595334L;
private final DataHandler dh;
@@ -7,7 +7,7 @@ import org.w3c.dom.NodeList;
import com.studentersamfundet.app.DataHandler;
import com.studentersamfundet.app.Event;
import com.studentersamfundet.app.FeedFetcher;
import com.studentersamfundet.app.IRSSParser;
import com.studentersamfundet.app.IParser;
import com.studentersamfundet.app.R;
import com.studentersamfundet.app.ui.BaseDnsActivity;
@@ -25,7 +25,7 @@ import android.widget.Toast;
public abstract class BaseListActivity extends BaseDnsActivity {
private DataHandler datahandler;
private FeedFetcher feed;
private IRSSParser parser;
private IParser parser;
private boolean isUpdated = false;
@@ -40,7 +40,7 @@ public abstract class BaseListActivity extends BaseDnsActivity {
throw new RuntimeException("This activity must be fed a feed feeder.");
/* Create the parser: */
this.parser = (IRSSParser)i.getExtras().get("parser");
this.parser = (IParser)i.getExtras().get("parser");
if (this.parser == null)
throw new RuntimeException("This activity requires feed parser");