Package co.arago.util.json.streaming
Interface JsonStreamCallback
-
public interface JsonStreamCallbackCallback interface for incoming JSON data
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddataCallback(java.lang.String name, java.lang.Object data)Callback function for incoming datavoiddataException(java.lang.Throwable t)Callback on exceptionvoiddataFinished()Called when all data has been handled
-
-
-
Method Detail
-
dataCallback
void dataCallback(java.lang.String name, java.lang.Object data) throws java.io.IOExceptionCallback function for incoming data- Parameters:
name- Identifier for the data to handledata- Data payload- Throws:
java.io.IOException- When the source of the data for the callback has an error.
-
dataException
void dataException(java.lang.Throwable t)
Callback on exception- Parameters:
t- Throwable with information about what went wrong.
-
dataFinished
void dataFinished()
Called when all data has been handled
-
-