From e5e7015df314d419035d9788c50a6ca63520e926 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Tue, 26 Jun 2012 18:55:43 +0200 Subject: [PATCH] removed 'characters' method from namespace class --- src/de/podfetcher/syndication/handler/SyndHandler.java | 4 ---- src/de/podfetcher/syndication/namespace/Namespace.java | 3 --- src/de/podfetcher/syndication/namespace/atom/NSAtom.java | 5 ----- .../syndication/namespace/content/NSContent.java | 6 ------ .../podfetcher/syndication/namespace/itunes/NSITunes.java | 7 ------- src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java | 5 ----- 6 files changed, 30 deletions(-) diff --git a/src/de/podfetcher/syndication/handler/SyndHandler.java b/src/de/podfetcher/syndication/handler/SyndHandler.java index 3cecabd64..d4b7482ea 100644 --- a/src/de/podfetcher/syndication/handler/SyndHandler.java +++ b/src/de/podfetcher/syndication/handler/SyndHandler.java @@ -51,10 +51,6 @@ public class SyndHandler extends DefaultHandler { state.contentBuf.append(content); } } - SyndElement top = state.tagstack.peek(); - if (top.getNamespace() != null) { - top.getNamespace().handleCharacters(state, ch, start, length); - } } } diff --git a/src/de/podfetcher/syndication/namespace/Namespace.java b/src/de/podfetcher/syndication/namespace/Namespace.java index 6142c9590..5d34250dc 100644 --- a/src/de/podfetcher/syndication/namespace/Namespace.java +++ b/src/de/podfetcher/syndication/namespace/Namespace.java @@ -15,9 +15,6 @@ public abstract class Namespace { * */ public abstract SyndElement handleElementStart(String localName, HandlerState state, Attributes attributes); - /** Called by a Feedhandler when in characters and it detects a namespace element */ - public abstract void handleCharacters(HandlerState state, char ch[], int start, int length); - /** Called by a Feedhandler when in endElement and it detects a namespace element * @return true if namespace handled the element, false if it ignored it * */ diff --git a/src/de/podfetcher/syndication/namespace/atom/NSAtom.java b/src/de/podfetcher/syndication/namespace/atom/NSAtom.java index 979f3a86a..826954beb 100644 --- a/src/de/podfetcher/syndication/namespace/atom/NSAtom.java +++ b/src/de/podfetcher/syndication/namespace/atom/NSAtom.java @@ -95,11 +95,6 @@ public class NSAtom extends Namespace { return new SyndElement(localName, this); } - @Override - public void handleCharacters(HandlerState state, char[] ch, int start, - int length) { - - } @Override public void handleElementEnd(String localName, HandlerState state) { diff --git a/src/de/podfetcher/syndication/namespace/content/NSContent.java b/src/de/podfetcher/syndication/namespace/content/NSContent.java index 8dcfc208a..3cfdedac3 100644 --- a/src/de/podfetcher/syndication/namespace/content/NSContent.java +++ b/src/de/podfetcher/syndication/namespace/content/NSContent.java @@ -20,12 +20,6 @@ public class NSContent extends Namespace { return new SyndElement(localName, this); } - @Override - public void handleCharacters(HandlerState state, char[] ch, int start, - int length) { - - } - @Override public void handleElementEnd(String localName, HandlerState state) { if (localName.equals(ENCODED)) { diff --git a/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java b/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java index a93af978b..a10f2cd17 100644 --- a/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java +++ b/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java @@ -29,13 +29,6 @@ public class NSITunes extends Namespace{ return new SyndElement(localName, this); } - @Override - public void handleCharacters(HandlerState state, char[] ch, int start, - int length) { - - - } - @Override public void handleElementEnd(String localName, HandlerState state) { diff --git a/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java b/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java index f245882ad..87e5d89a7 100644 --- a/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java +++ b/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java @@ -62,11 +62,6 @@ public class NSRSS20 extends Namespace { return new SyndElement(localName, this); } - @Override - public void handleCharacters(HandlerState state, char[] ch, int start, - int length) { - } - @Override public void handleElementEnd(String localName, HandlerState state) { if (localName.equals(ITEM)) {