Package com.espacogeek.geek.batch
Class SerieJsonReader
java.lang.Object
org.springframework.batch.item.ItemStreamSupport
org.springframework.batch.item.support.AbstractItemStreamItemReader<org.json.simple.JSONObject>
com.espacogeek.geek.batch.SerieJsonReader
- All Implemented Interfaces:
org.springframework.batch.item.ItemReader<org.json.simple.JSONObject>,org.springframework.batch.item.ItemStream,org.springframework.batch.item.ItemStreamReader<org.json.simple.JSONObject>
@StepScope
@Component
public class SerieJsonReader
extends org.springframework.batch.item.support.AbstractItemStreamItemReader<org.json.simple.JSONObject>
ItemReader that reads JSONObjects from the JSONArray returned by the TV Series MediaApi.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.batch.item.ItemStreamSupport
getExecutionContextKey, getName, setExecutionContextName, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.batch.item.ItemStream
close
-
Constructor Details
-
SerieJsonReader
public SerieJsonReader()
-
-
Method Details
-
open
public void open(org.springframework.batch.item.ExecutionContext executionContext) -
update
public void update(org.springframework.batch.item.ExecutionContext executionContext) -
read
public org.json.simple.JSONObject read()
-