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.


Constructor Index

 o RewritableLinkTransformer(String)
Make a RewritableLinkTransformer.

Method Index

 o close()
Close the transformer.
 o handleLink(Link)
Handle a Link's transformation.
 o rewrite()
Rewrite the file, remapping all the URLs according to their current values from lookup().

Constructors

 o RewritableLinkTransformer
 public RewritableLinkTransformer(String filename) throws IOException
Make a RewritableLinkTransformer.

Parameters:
filename - Filename to write to

Methods

 o close
 public void close() throws IOException
Close the transformer.

Overrides:
close in class HTMLTransformer
 o handleLink
 protected void handleLink(Link link) throws IOException
Handle a Link's transformation.

Overrides:
handleLink in class LinkTransformer
 o 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