org.pentaho.reporting.libraries.fonts.text.whitespace

Class DiscardWhiteSpaceFilter

public class DiscardWhiteSpaceFilter extends Object implements WhiteSpaceFilter

Creation-Date: 11.06.2006, 20:11:17

Author: Thomas Morgner

Field Summary
static charZERO_WIDTH_NON_JOINER
Constructor Summary
DiscardWhiteSpaceFilter()
Method Summary
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_NON_JOINER

public static final char ZERO_WIDTH_NON_JOINER

Constructor Detail

DiscardWhiteSpaceFilter

public DiscardWhiteSpaceFilter()

Method Detail

clone

public Object clone()

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.

Parameters: codepoint

Returns:

reset

public void reset()
Reset the filter to the same state as if the filter had been constructed but not used yet.