ikrs.json
Class JSONNull

java.lang.Object
  extended by ikrs.json.AbstractJSONValue
      extended by ikrs.json.JSONNull
All Implemented Interfaces:
JSONValue

public class JSONNull
extends AbstractJSONValue


Field Summary
 
Fields inherited from interface ikrs.json.JSONValue
FALSE, NULL, TRUE, TYPE_ARRAY, TYPE_BOOLEAN, TYPE_NULL, TYPE_NUMBER, TYPE_OBJECT, TYPE_STRING
 
Constructor Summary
JSONNull()
          Create a new JSON null.
 
Method Summary
 java.lang.String toString()
           
 void write(java.io.Writer writer)
          This method MUST write a valid JSON value to the passed writer.
 
Methods inherited from class ikrs.json.AbstractJSONValue
asJSONArray, asJSONBoolean, asJSONNumber, asJSONObject, asJSONString, getArray, getBoolean, getNumber, getObject, getString, getTypeName, isArray, isBoolean, isNull, isNumber, isObject, isString, isValidTypeID, toJSONString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONNull

public JSONNull()
         throws java.lang.NullPointerException
Create a new JSON null.

Parameters:
object - The object value this JSON value should have.
Throws:
java.lang.NullPointerException
Method Detail

write

public void write(java.io.Writer writer)
           throws java.io.IOException
This method MUST write a valid JSON value to the passed writer.

Specified by:
write in interface JSONValue
Specified by:
write in class AbstractJSONValue
Parameters:
writer - The writer to write to.
Throws:
java.io.IOException - If any IO errors occur.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object