/*  Copyright (c) 2000, 2002 by Oracle Corporation. All Rights Reserved. */

package oracle.portal.provider.v1; 
import java.io.InputStream; 

/**
 * <p>Interface ContentFilter reads, filters and writes the URL Content given
 * to it as input. This model puts control of editing URL Contents completely
 * in the hands of the filter.
 * </p>
 */
public interface ContentFilter 
{ 
    
    /**
     * <p>Filters the URL Content given to is as inputstream
     * and renders the portlet, using PortletRenderRequest Object.</p>
     * @param pr PortletRenderRequest Object rendering url content
     * @param is InputStream containing the url content
     * @exception java.io.IOException when some input/output error occurs.
     */
    public void filterContent(PortletRenderRequest pr, InputStream is) throws java.io.IOException,PortletException; 
} 