xv.json
Class JSONCharacter
java.lang.Object
xv.json.JSONCharacter
public class JSONCharacter
- extends Object
Handles the definition of character classes in the JSON spec (versus the Java
spec).
At present this is limited to the definition of whitespace.
- Author:
- xv
Method Summary |
static boolean |
isWhitespace(char c)
Determines if the given character is considered a whitespace character
according to the JSON spec. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONCharacter
public JSONCharacter()
isWhitespace
public static boolean isWhitespace(char c)
- Determines if the given character is considered a whitespace character
according to the JSON spec.
Whitespace characters are space ' '
, tab '\t'
, carriage
return '\r'
, and the newline character '\n'
.
- Parameters:
c
- the character to check
- Returns:
- whether the character is a JSON character
Copyright © 2008-2011. All Rights Reserved.