public class WhitespaceMatcher extends java.lang.Object implements ICharacterMatcher
Constructor and Description |
---|
WhitespaceMatcher()
Creates an object that matches all whitespace characters, line terminators included
|
WhitespaceMatcher(boolean matchEndLines)
Creates an object that matches whitespace characters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(char ch)
Matches whitespace characters.
|
public WhitespaceMatcher()
public WhitespaceMatcher(boolean matchEndLines)
matchEndLines
- match line terminators as wellpublic boolean matches(char ch)
matches
in interface ICharacterMatcher
ch
- the character to be matchedICharacterMatcher.matches(char)