xv.json
Class JSONCharacter

java.lang.Object
  extended by 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

Constructor Summary
JSONCharacter()
           
 
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
 

Constructor Detail

JSONCharacter

public JSONCharacter()
Method Detail

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.