com.jivesoftware.forum.renderer.filter.rules
Class NewlineTextFilter
java.lang.Object
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.
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 |
NewlineTextFilter
public NewlineTextFilter(FormatExclusion excludedBlocks)
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)
Copyright © 1999-2006 Jive Software.