All Packages Class Hierarchy This Package Previous Next Index
Class websphinx.RewritableLinkTransformer
java.lang.Object
|
+----websphinx.HTMLTransformer
|
+----websphinx.LinkTransformer
|
+----websphinx.RewritableLinkTransformer
- public class RewritableLinkTransformer
- extends LinkTransformer
Transformer that remaps URLs in links in such a way
that if the URL mapping changes during (or after) some
HTML has been transformed, the HTML can be fixed up after
the fact. This class is used by Concatenator and Mirror,
since in those operations, the URL mapping function
changes as each page is written to the concatenation or
mirror.
-
RewritableLinkTransformer(String)
- Make a RewritableLinkTransformer.
-
close()
- Close the transformer.
-
handleLink(Link)
- Handle a Link's transformation.
-
rewrite()
- Rewrite the file, remapping all the URLs according to their
current values from lookup().
RewritableLinkTransformer
public RewritableLinkTransformer(String filename) throws IOException
- Make a RewritableLinkTransformer.
- Parameters:
- filename - Filename to write to
close
public void close() throws IOException
- Close the transformer.
- Overrides:
- close in class HTMLTransformer
handleLink
protected void handleLink(Link link) throws IOException
- Handle a Link's transformation.
- Overrides:
- handleLink in class LinkTransformer
rewrite
public void rewrite() throws IOException
- Rewrite the file, remapping all the URLs according to their
current values from lookup().
All Packages Class Hierarchy This Package Previous Next Index