KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > $packageName$ > XMLWhitespaceDetector


1 package $packageName$;
2
3 import org.eclipse.jface.text.rules.IWhitespaceDetector;
4
5 public class XMLWhitespaceDetector implements IWhitespaceDetector {
6
7     public boolean isWhitespace(char c) {
8         return (c == ' ' || c == '\t' || c == '\n' || c == '\r');
9     }
10 }
11
Popular Tags