com.ibm.portal.streaming.json
Class EmptyJsonHandler

java.lang.Object
  extended by com.ibm.portal.streaming.json.EmptyJsonHandler
All Implemented Interfaces:
JSONHandler

Deprecated. use EmptyJsonContentHandler instead

@Deprecated
public class EmptyJsonHandler
extends java.lang.Object
implements JSONHandler

Implementation of a JSONHandler that does nothing

Since:
7.0.0

Constructor Summary
EmptyJsonHandler()
          Deprecated.  
 
Method Summary
 void endArray()
          Deprecated. Finishes a JSON array
 void endDocument()
          Deprecated. Finish / end of a JSON document
 void endJSONObject()
          Deprecated. Finishes a JSON object.
 void endPair()
          Deprecated. Finishes a JSON pair
 void pair(java.lang.String name, boolean value)
          Deprecated. Writes a complete JSON pair, including it's begin and end events.
 void pair(java.lang.String name, double value)
          Deprecated. Writes a complete JSON pair, including it's begin and end events.
 void pair(java.lang.String name, int value)
          Deprecated. Writes a complete JSON pair, including it's begin and end events.
 void pair(java.lang.String name, java.lang.String value)
          Deprecated. Writes a complete JSON pair, including it's begin and end events.
 void startArray()
          Deprecated. Starts a JSON array
 void startDocument()
          Deprecated. Start / Beginn of a JSON document
 void startJSONObject()
          Deprecated. Start of a JSON object.
 void startPair(java.lang.String name)
          Deprecated. Start of a JSON pair.
 void value(boolean aValue)
          Deprecated. Writes a boolean value, may e.
 void value(double aValue)
          Deprecated. Writes a double value, may e.
 void value(int aValue)
          Deprecated. Writes an int value, may e.
 void value(java.lang.String aValue)
          Deprecated. Writes a String value, may e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyJsonHandler

public EmptyJsonHandler()
Deprecated. 
Method Detail

endArray

public void endArray()
              throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Finishes a JSON array

Specified by:
endArray in interface JSONHandler
Throws:
java.io.IOException - if the event could not be created

endDocument

public void endDocument()
                 throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Finish / end of a JSON document

Specified by:
endDocument in interface JSONHandler
Throws:
java.io.IOException - if the event could not be created

endJSONObject

public void endJSONObject()
                   throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Finishes a JSON object.

Specified by:
endJSONObject in interface JSONHandler
Throws:
java.io.IOException - if the event could not be created

endPair

public void endPair()
             throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Finishes a JSON pair

Specified by:
endPair in interface JSONHandler
Throws:
java.io.IOException - if the event could not be created

pair

public void pair(java.lang.String name,
                 java.lang.String value)
          throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes a complete JSON pair, including it's begin and end events.

Specified by:
pair in interface JSONHandler
Parameters:
name - The name of the pair
value - The String value of the pair
Throws:
java.io.IOException - if the event could not be created

pair

public void pair(java.lang.String name,
                 int value)
          throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes a complete JSON pair, including it's begin and end events.

Specified by:
pair in interface JSONHandler
Parameters:
name - The name of the pair
value - The int value of the pair
Throws:
java.io.IOException - if the event could not be created

pair

public void pair(java.lang.String name,
                 double value)
          throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes a complete JSON pair, including it's begin and end events.

Specified by:
pair in interface JSONHandler
Parameters:
name - The name of the pair
value - The double value of the pair
Throws:
java.io.IOException - if the event could not be created

pair

public void pair(java.lang.String name,
                 boolean value)
          throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes a complete JSON pair, including it's begin and end events.

Specified by:
pair in interface JSONHandler
Parameters:
name - The name of the pair
value - The boolean value of the pair
Throws:
java.io.IOException - if the event could not be created

startArray

public void startArray()
                throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Starts a JSON array

Specified by:
startArray in interface JSONHandler
Throws:
java.io.IOException - if the event could not be created

startDocument

public void startDocument()
                   throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Start / Beginn of a JSON document

Specified by:
startDocument in interface JSONHandler
Throws:
java.io.IOException - if the event could not be created

startJSONObject

public void startJSONObject()
                     throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Start of a JSON object.

Specified by:
startJSONObject in interface JSONHandler
Throws:
java.io.IOException - if the event could not be created

startPair

public void startPair(java.lang.String name)
               throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Start of a JSON pair.

Specified by:
startPair in interface JSONHandler
Parameters:
name - The name of the pair
Throws:
java.io.IOException - if the event could not be created

value

public void value(java.lang.String aValue)
           throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes a String value, may e. g. be used in a JSON array.

Note this also covers the JSON literal null

Specified by:
value in interface JSONHandler
Parameters:
aValue - The String value or null if the underlying String represents the JSON literal null
Throws:
java.io.IOException - if the event could not be created

value

public void value(boolean aValue)
           throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes a boolean value, may e. g. be used in a JSON array.

Specified by:
value in interface JSONHandler
Parameters:
aValue - The boolean value
Throws:
java.io.IOException - if the event could not be created

value

public void value(double aValue)
           throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes a double value, may e. g. be used in a JSON array.

Specified by:
value in interface JSONHandler
Parameters:
aValue - The double value.
Throws:
java.io.IOException - if the event could not be created

value

public void value(int aValue)
           throws java.io.IOException
Deprecated. 
Description copied from interface: JSONHandler
Writes an int value, may e. g. be used in a JSON array.

Specified by:
value in interface JSONHandler
Parameters:
aValue - The int value
Throws:
java.io.IOException - if the event could not be created