Class PreserveBreaksWhiteSpaceFilter
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.text.whitespace.PreserveBreaksWhiteSpaceFilter
-
- All Implemented Interfaces:
Cloneable
,WhiteSpaceFilter
- Direct Known Subclasses:
CollapseWhiteSpaceFilter
public class PreserveBreaksWhiteSpaceFilter extends Object implements WhiteSpaceFilter
Creation-Date: 11.06.2006, 20:18:00- Author:
- Thomas Morgner
-
-
Field Summary
-
Fields inherited from interface org.pentaho.reporting.libraries.fonts.text.whitespace.WhiteSpaceFilter
STRIP_WHITESPACE
-
-
Constructor Summary
Constructors Constructor Description PreserveBreaksWhiteSpaceFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
int
filter(int codepoint)
Filters the whitespaces.protected boolean
isLinebreak(int codepoint)
void
reset()
Reset the filter to the same state as if the filter had been constructed but not used yet.
-
-
-
Method Detail
-
reset
public void reset()
Reset the filter to the same state as if the filter had been constructed but not used yet.- Specified by:
reset
in interfaceWhiteSpaceFilter
-
filter
public int filter(int codepoint)
Filters the whitespaces. This method returns '-1', if the whitespace should be removed from the stream; otherwise it presents a replacement character. If the codepoint is no whitespace at all, the codepoint is returned unchanged.- Specified by:
filter
in interfaceWhiteSpaceFilter
- Parameters:
codepoint
-- Returns:
-
isLinebreak
protected boolean isLinebreak(int codepoint)
-
clone
public Object clone() throws CloneNotSupportedException
- Specified by:
clone
in interfaceWhiteSpaceFilter
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-