|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JsonContentHandler
instead
@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
ContentHandler
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. |
Method Detail |
---|
void startDocument() throws java.io.IOException
java.io.IOException
- if the event could not be createdvoid endDocument() throws java.io.IOException
java.io.IOException
- if the event could not be createdvoid startJSONObject() throws java.io.IOException
java.io.IOException
- if the event could not be createdvoid pair(java.lang.String name, java.lang.String value) throws java.io.IOException
name
- The name of the pairvalue
- The String
value of the pair
java.io.IOException
- if the event could not be createdvoid pair(java.lang.String name, int value) throws java.io.IOException
name
- The name of the pairvalue
- The int
value of the pair
java.io.IOException
- if the event could not be createdvoid pair(java.lang.String name, double value) throws java.io.IOException
name
- The name of the pairvalue
- The double
value of the pair
java.io.IOException
- if the event could not be createdvoid pair(java.lang.String name, boolean value) throws java.io.IOException
name
- The name of the pairvalue
- The boolean
value of the pair
java.io.IOException
- if the event could not be createdvoid startPair(java.lang.String name) throws java.io.IOException
name
- The name of the pair
java.io.IOException
- if the event could not be createdvoid endPair() throws java.io.IOException
java.io.IOException
- if the event could not be createdvoid endJSONObject() throws java.io.IOException
java.io.IOException
- if the event could not be createdvoid startArray() throws java.io.IOException
java.io.IOException
- if the event could not be createdvoid endArray() throws java.io.IOException
java.io.IOException
- if the event could not be createdvoid value(java.lang.String aValue) throws java.io.IOException
String
value, may e. g. be used in a JSON array.
Note this also covers the JSON literal null
aValue
- The String
value or null
if the
underlying String represents the JSON literal
null
java.io.IOException
- if the event could not be createdvoid value(boolean aValue) throws java.io.IOException
boolean
value, may e. g. be used in a JSON array.
aValue
- The boolean
value
java.io.IOException
- if the event could not be createdvoid value(double aValue) throws java.io.IOException
double
value, may e. g. be used in a JSON array.
aValue
- The double
value.
java.io.IOException
- if the event could not be createdvoid value(int aValue) throws java.io.IOException
int
value, may e. g. be used in a JSON array.
aValue
- The int
value
java.io.IOException
- if the event could not be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |