org.apache.jetspeed.util.rewriter
Class ClipperRewriter

java.lang.Object
  extended byorg.apache.jetspeed.util.rewriter.HTMLRewriter
      extended byorg.apache.jetspeed.util.rewriter.ClipperRewriter
All Implemented Interfaces:
Rewriter

public class ClipperRewriter
extends HTMLRewriter

HTML Rewriter for transformer service

Version:
$Id: ClipperRewriter.java,v 1.2 2004/02/23 03:18:59 jford Exp $
Author:
Marco Mari

Field Summary
 
Fields inherited from class org.apache.jetspeed.util.rewriter.HTMLRewriter
baseURL
 
Constructor Summary
ClipperRewriter()
           
 
Method Summary
 boolean enterEndTagEvent(javax.swing.text.html.HTML.Tag tag)
           
 boolean enterSimpleTagEvent(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrs)
           
 boolean enterStartTagEvent(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attrs)
           
 boolean enterText(char[] values, int param)
           
 boolean proxyAllTags()
           
 java.lang.String rewrite(java.io.Reader input, java.lang.String baseURL)
           
 void setStartElement(java.lang.String startElement)
          Set the start element
 void setStartElementNumber(int startElementNumber)
          Set the start element number
 void setStopElement(java.lang.String stopElement)
          Set the stop element
 
Methods inherited from class org.apache.jetspeed.util.rewriter.HTMLRewriter
convertTagEvent, exitEndTagEvent, exitSimpleTagEvent, exitStartTagEvent, generateNewUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipperRewriter

public ClipperRewriter()
Method Detail

rewrite

public java.lang.String rewrite(java.io.Reader input,
                                java.lang.String baseURL)
                         throws java.net.MalformedURLException
Specified by:
rewrite in interface Rewriter
Overrides:
rewrite in class HTMLRewriter
Throws:
java.net.MalformedURLException

proxyAllTags

public boolean proxyAllTags()
Specified by:
proxyAllTags in interface Rewriter
Overrides:
proxyAllTags in class HTMLRewriter

enterSimpleTagEvent

public boolean enterSimpleTagEvent(javax.swing.text.html.HTML.Tag tag,
                                   javax.swing.text.MutableAttributeSet attrs)
Specified by:
enterSimpleTagEvent in interface Rewriter
Overrides:
enterSimpleTagEvent in class HTMLRewriter

enterStartTagEvent

public boolean enterStartTagEvent(javax.swing.text.html.HTML.Tag tag,
                                  javax.swing.text.MutableAttributeSet attrs)
Specified by:
enterStartTagEvent in interface Rewriter
Overrides:
enterStartTagEvent in class HTMLRewriter

enterEndTagEvent

public boolean enterEndTagEvent(javax.swing.text.html.HTML.Tag tag)
Specified by:
enterEndTagEvent in interface Rewriter
Overrides:
enterEndTagEvent in class HTMLRewriter

enterText

public boolean enterText(char[] values,
                         int param)
Specified by:
enterText in interface Rewriter
Overrides:
enterText in class HTMLRewriter

setStartElement

public void setStartElement(java.lang.String startElement)
Set the start element

Parameters:
startElement - the new start element

setStopElement

public void setStopElement(java.lang.String stopElement)
Set the stop element

Parameters:
stopElement - the new stop element

setStartElementNumber

public void setStartElementNumber(int startElementNumber)
Set the start element number

Parameters:
startElementNumber - the new start element number


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.