org.w3c.tidy.servlet
Class TidyProcessor

java.lang.Object
  extended byorg.w3c.tidy.servlet.TidyProcessor

public class TidyProcessor
extends java.lang.Object

Common class used by Filter and Tag to process responce.

Version:
$Revision: 1.6 $ ($Author: fgiust $)
Author:
Vlad Skarzhevskyy skarzhevskyy@gmail.com

Constructor Summary
TidyProcessor(javax.servlet.http.HttpSession httpSession, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Initialize Processor.
 
Method Summary
 boolean isDoubleValidation()
           
 boolean parse(java.io.InputStream in, java.io.OutputStream out, java.lang.String html)
           
 boolean parse(java.io.InputStream in, java.io.OutputStream out, java.lang.String html, java.lang.Object requestID, RepositoryFactory factory)
           
 java.lang.String replaceAll(java.lang.String str, java.lang.String replace, java.lang.String replacement)
          jre 1.3 compatible replaceAll.
 void setCommentsSubst(boolean commentsSubst)
           
 void setConfig(java.lang.String config)
           
 void setDoubleValidation(boolean doubleValidation)
           
 void setValidateOnly(boolean validateOnly)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TidyProcessor

public TidyProcessor(javax.servlet.http.HttpSession httpSession,
                     javax.servlet.http.HttpServletRequest httpServletRequest,
                     javax.servlet.http.HttpServletResponse httpServletResponse)
Initialize Processor.

Method Detail

parse

public boolean parse(java.io.InputStream in,
                     java.io.OutputStream out,
                     java.lang.String html)

parse

public boolean parse(java.io.InputStream in,
                     java.io.OutputStream out,
                     java.lang.String html,
                     java.lang.Object requestID,
                     RepositoryFactory factory)

setConfig

public void setConfig(java.lang.String config)
Parameters:
config - The config to set.

isDoubleValidation

public boolean isDoubleValidation()
Returns:
Returns the doubleValidation.

setDoubleValidation

public void setDoubleValidation(boolean doubleValidation)
Parameters:
doubleValidation - The doubleValidation to set.

setValidateOnly

public void setValidateOnly(boolean validateOnly)
Parameters:
validateOnly - The validateOnly to set.

setCommentsSubst

public void setCommentsSubst(boolean commentsSubst)
Parameters:
commentsSubst - The commentsSubst to set.

replaceAll

public java.lang.String replaceAll(java.lang.String str,
                                   java.lang.String replace,
                                   java.lang.String replacement)
jre 1.3 compatible replaceAll.

Parameters:
str - text to search and replace in
replace - the String to search for
replacement - the String to replace with
Returns:
the text with any replacements processed


Copyright © 2004-2005 sourceforge. All Rights Reserved.