Interface WhiteSpaceFilter
-
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
CollapseWhiteSpaceFilter
,DiscardWhiteSpaceFilter
,PreserveBreaksWhiteSpaceFilter
,PreserveWhiteSpaceFilter
public interface WhiteSpaceFilter extends Cloneable
Creation-Date: 11.06.2006, 19:19:44- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static int
STRIP_WHITESPACE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
clone()
int
filter(int codepoint)
Filters the whitespaces.void
reset()
Reset the filter to the same state as if the filter had been constructed but not used yet.
-
-
-
Field Detail
-
STRIP_WHITESPACE
static final int STRIP_WHITESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
filter
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
void reset()
Reset the filter to the same state as if the filter had been constructed but not used yet.
-
clone
Object clone() throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
-
-