|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.sentinel.json.DelegatingJSONHandlerImpl
public class DelegatingJSONHandlerImpl
Simple implementation of JSONHandler that delegates all calls to another JSONHandler. Derived classes can selectively override methods to do something useful.
| Constructor Summary | |
|---|---|
DelegatingJSONHandlerImpl()
|
|
DelegatingJSONHandlerImpl(JSONHandler _delegate)
|
|
| Method Summary | |
|---|---|
JSONHandler |
booleanValue(boolean booleanValue)
Report a JSON boolean value. |
JSONHandler |
endArray()
End the current JSON array. |
JSONHandler |
endObject()
End the current JSON object. |
JSONHandler |
getDelegate()
|
JSONHandler |
name(String valueName)
Report the name for the following value (object, array, or simple value). |
JSONHandler |
nullValue()
Report a JSON null value. |
JSONHandler |
numberValue(String numberValue)
Report a JSON number value. |
void |
setDelegate(JSONHandler _delegate)
|
JSONHandler |
startArray()
Start a new JSON array. |
JSONHandler |
startObject()
Start a new JSON object. |
JSONHandler |
stringValue(String value)
Report a JSON string value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingJSONHandlerImpl()
public DelegatingJSONHandlerImpl(JSONHandler _delegate)
| Method Detail |
|---|
public JSONHandler getDelegate()
public void setDelegate(JSONHandler _delegate)
public JSONHandler startObject()
throws IOException
JSONHandler
startObject in interface JSONHandlerIOException
public JSONHandler endObject()
throws IOException
JSONHandler
endObject in interface JSONHandlerIOException
public JSONHandler startArray()
throws IOException
JSONHandler
startArray in interface JSONHandlerIOException
public JSONHandler endArray()
throws IOException
JSONHandler
endArray in interface JSONHandlerIOException
public JSONHandler name(String valueName)
throws IOException
JSONHandler
name in interface JSONHandlervalueName - The value name.
IOException
public JSONHandler stringValue(String value)
throws IOException
JSONHandler
stringValue in interface JSONHandlervalue - The value.
IOException
public JSONHandler numberValue(String numberValue)
throws IOException
JSONHandler
numberValue in interface JSONHandlernumberValue - The lexical representation of a JSON number value.
IOException
public JSONHandler booleanValue(boolean booleanValue)
throws IOException
JSONHandler
booleanValue in interface JSONHandlerbooleanValue - true or false
IOException
public JSONHandler nullValue()
throws IOException
JSONHandler
nullValue in interface JSONHandlerIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||