prupp.filter
Class AdFilter
java.lang.Object
|
+--prupp.filter.Filter
|
+--prupp.filter.AdFilter
- public class AdFilter
- extends Filter
Remove advertising from pages.
Field Summary |
protected static java.lang.String |
adreplacer
the image we replace ads with |
protected static java.util.Vector |
evil
the vector of ad-sites |
Constructor Summary |
AdFilter()
constructor |
Method Summary |
java.lang.String |
filter(HTMLBlock block)
Filter away Advertising. |
static java.util.Properties |
getProperties()
Called when you want to get the possible settings this filter
support. |
static void |
setup(java.util.Properties properties)
Called when you want to setup how this filter should work. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
evil
protected static java.util.Vector evil
- the vector of ad-sites
adreplacer
protected static java.lang.String adreplacer
- the image we replace ads with
AdFilter
public AdFilter()
- constructor
filter
public java.lang.String filter(HTMLBlock block)
- Filter away Advertising.
- Parameters:
block
- the HTMLBlock were about to filter.- Returns:
- the uncertain area of the block.
- Overrides:
- filter in class Filter
setup
public static void setup(java.util.Properties properties)
- Called when you want to setup how this filter should work.
- Parameters:
properties
- the properties to use.
getProperties
public static java.util.Properties getProperties()
- Called when you want to get the possible settings this filter
support.