Class DiscardWhiteSpaceFilter
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.text.whitespace.DiscardWhiteSpaceFilter
-
- All Implemented Interfaces:
java.lang.Cloneable,WhiteSpaceFilter
public class DiscardWhiteSpaceFilter extends java.lang.Object implements WhiteSpaceFilter
Creation-Date: 11.06.2006, 20:11:17- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static charZERO_WIDTH-
Fields inherited from interface org.pentaho.reporting.libraries.fonts.text.whitespace.WhiteSpaceFilter
STRIP_WHITESPACE
-
-
Constructor Summary
Constructors Constructor Description DiscardWhiteSpaceFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()intfilter(int codepoint)Filters the whitespaces.voidreset()Reset the filter to the same state as if the filter had been constructed but not used yet.
-
-
-
Field Detail
-
ZERO_WIDTH
public static final char ZERO_WIDTH
- See Also:
- Constant Field Values
-
-
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:
resetin 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:
filterin interfaceWhiteSpaceFilter- Parameters:
codepoint-- Returns:
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Specified by:
clonein interfaceWhiteSpaceFilter- Throws:
java.lang.CloneNotSupportedException
-
-