org.erowid.sperowider.htmlshredding
Class CSSURLMongler
java.lang.Object
org.erowid.sperowider.htmlshredding.AMongler
org.erowid.sperowider.htmlshredding.CSSURLMongler
- public abstract class CSSURLMongler
- extends AMongler
This class, when mongle() is called, will call the urlFound() method for each URL that's found,
and will replace that url with whatever that method returns.
- Version:
- : $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/htmlshredding/CSSURLMongler.java,v 1.5 2005/03/13 11:14:12 gurustu Exp $
- Author:
- : $Author: gurustu $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSSURLMongler
public CSSURLMongler()
urlFound
public abstract String urlFound(String url)
- Description copied from class:
AMongler
- Extending classes should return the URL to replace the passed in URL, or null
to indicate that it should be kept.
- Specified by:
urlFound
in class AMongler
mongle
public void mongle(BufferedReader reader,
Writer w)
throws IOException
- Description copied from class:
AMongler
- Delegates to
AMongler.mongle(BufferedReader)
. Either this method or that
method *must* be overriden or an infinite loop will happen.
- Overrides:
mongle
in class AMongler
- Throws:
IOException