PREV CLASS NEXT CLASS
Tree SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.portal.streaming.json
Interface JSONHandlerDeprecated. use JsonContentHandler instead
- All Known Implementing Classes:
- EmptyJsonHandler
@Deprecated public interface JSONHandler
JAXP like handler that defines semantic callbacks for JSON specific events.
rfc4627
http://www.ietf.org/rfc/rfc4627.txt?number=4627
- Since:
- 7.0.0
- See Also:
- ContentHandler
Method Summary void endArray()
Deprecated. Finishes a JSON arrayvoid endDocument()
Deprecated. Finish / end of a JSON documentvoid endJSONObject()
Deprecated. Finishes a JSON object.void endPair()
Deprecated. Finishes a JSON pairvoid 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 arrayvoid startDocument()
Deprecated. Start / Beginn of a JSON documentvoid 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.
Method Detail startDocument
void startDocument() throws java.io.IOException
- Deprecated.
- Start / Beginn of a JSON document
- Throws:
- java.io.IOException - if the event could not be created
endDocument
void endDocument() throws java.io.IOException
- Deprecated.
- Finish / end of a JSON document
- Throws:
- java.io.IOException - if the event could not be created
startJSONObject
void startJSONObject() throws java.io.IOException
- Deprecated.
- Start of a JSON object.
- Throws:
- java.io.IOException - if the event could not be created
pair
void pair(java.lang.String name, java.lang.String value) throws java.io.IOException
- Deprecated.
- Writes a complete JSON pair, including it's begin and end events.
- 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
void pair(java.lang.String name, int value) throws java.io.IOException
- Deprecated.
- Writes a complete JSON pair, including it's begin and end events.
- 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
void pair(java.lang.String name, double value) throws java.io.IOException
- Deprecated.
- Writes a complete JSON pair, including it's begin and end events.
- 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
void pair(java.lang.String name, boolean value) throws java.io.IOException
- Deprecated.
- Writes a complete JSON pair, including it's begin and end events.
- 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
startPair
void startPair(java.lang.String name) throws java.io.IOException
- Deprecated.
- Start of a JSON pair.
- Parameters:
- name - The name of the pair
- Throws:
- java.io.IOException - if the event could not be created
endPair
void endPair() throws java.io.IOException
- Deprecated.
- Finishes a JSON pair
- Throws:
- java.io.IOException - if the event could not be created
endJSONObject
void endJSONObject() throws java.io.IOException
- Deprecated.
- Finishes a JSON object.
- Throws:
- java.io.IOException - if the event could not be created
startArray
void startArray() throws java.io.IOException
- Deprecated.
- Starts a JSON array
- Throws:
- java.io.IOException - if the event could not be created
endArray
void endArray() throws java.io.IOException
- Deprecated.
- Finishes a JSON array
- Throws:
- java.io.IOException - if the event could not be created
value
void value(java.lang.String aValue) throws java.io.IOException
- Deprecated.
- Writes a String value, may e. g. be used in a JSON array.
Note this also covers the JSON literal null
- 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
void value(boolean aValue) throws java.io.IOException
- Deprecated.
- Writes a boolean value, may e. g. be used in a JSON array.
- Parameters:
- aValue - The boolean value
- Throws:
- java.io.IOException - if the event could not be created
value
void value(double aValue) throws java.io.IOException
- Deprecated.
- Writes a double value, may e. g. be used in a JSON array.
- Parameters:
- aValue - The double value.
- Throws:
- java.io.IOException - if the event could not be created
value
void value(int aValue) throws java.io.IOExceptionPREV CLASS NEXT CLASS
- Deprecated.
- Writes an int value, may e. g. be used in a JSON array.
- Parameters:
- aValue - The int value
- Throws:
- java.io.IOException - if the event could not be created
Tree SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD