Package org.opensextant.data.social
Interface JSONListener
public interface JSONListener
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isDone()
If listener isDone, then caller should exitboolean
implementation should advertise if it prefers JSON or String.void
readObject
(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 Details
-
isDone
boolean isDone()If listener isDone, then caller should exit -
preferJSON
boolean preferJSON()implementation should advertise if it prefers JSON or String.- Returns:
-
readObject
- Throws:
MessageParseException
-
readObject
API method to allow implementation to read string, e.g., TW4J factory uses strictly String args in a JSON context.- Parameters:
obj
-- Throws:
MessageParseException
-