org.erowid.sperowider.htmlshredding
Class CSSURLMongler

java.lang.Object
  extended byorg.erowid.sperowider.htmlshredding.AMongler
      extended byorg.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 $

Constructor Summary
CSSURLMongler()
           
 
Method Summary
 void mongle(BufferedReader reader, Writer w)
          Delegates to AMongler.mongle(BufferedReader).
abstract  String urlFound(String url)
          Extending classes should return the URL to replace the passed in URL, or null to indicate that it should be kept.
 
Methods inherited from class org.erowid.sperowider.htmlshredding.AMongler
mongle, mongle, mongle, mongle, mongle, mongle, mongle, mongle, mongle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSURLMongler

public CSSURLMongler()
Method Detail

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

spero logo small Sperowider is
© 2005 Erowid.org