Package org.opensextant.data.social
Interface JSONListener
-
public interface JSONListener
-
-
Method Summary
Modifier and Type Method Description boolean
isDone()
If listener isDone, then caller should exitboolean
preferJSON()
implementation should advertise if it prefers JSON or String.void
readObject(java.lang.String obj)
API method to allow implementation to read string, e.g., TW4J factory uses strictly String args in a JSON context.void
readObject(jodd.json.JsonObject obj)
-
-
-
Method Detail
-
isDone
boolean isDone()
If listener isDone, then caller should exit
-
preferJSON
boolean preferJSON()
implementation should advertise if it prefers JSON or String.- Returns:
-
readObject
void readObject(jodd.json.JsonObject obj) throws MessageParseException
- Throws:
MessageParseException
-
readObject
void readObject(java.lang.String obj) throws MessageParseException
API method to allow implementation to read string, e.g., TW4J factory uses strictly String args in a JSON context.- Parameters:
obj
-- Throws:
MessageParseException
-
-