Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.renderer.filter.rules
Class NewlineTextFilter

java.lang.Object
  extended by com.jivesoftware.forum.renderer.filter.rules.NewlineTextFilter
All Implemented Interfaces:
com.jivesoftware.sitemesh.html.TextFilter

public class NewlineTextFilter
extends java.lang.Object
implements com.jivesoftware.sitemesh.html.TextFilter

A TextFilter which handles newline to br conversions. This filter is smart enough to know when to convert newline characters from the input stream to the html br tag and when not to.


Constructor Summary
NewlineTextFilter(FormatExclusion excludedBlocks)
           
 
Method Summary
 java.lang.String filter(java.lang.String string, int position, com.jivesoftware.sitemesh.html.HTMLProcessorContext context)
           
 boolean isNobrEnabled()
           
 void setNobrEnabled(boolean nobrEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewlineTextFilter

public NewlineTextFilter(FormatExclusion excludedBlocks)
Method Detail

filter

public java.lang.String filter(java.lang.String string,
                               int position,
                               com.jivesoftware.sitemesh.html.HTMLProcessorContext context)
Specified by:
filter in interface com.jivesoftware.sitemesh.html.TextFilter

isNobrEnabled

public boolean isNobrEnabled()

setNobrEnabled

public void setNobrEnabled(boolean nobrEnabled)

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.