T
- type of the target objectpublic interface JsonObjectReader<T>
Modifier and Type | Method and Description |
---|---|
default void |
close()
Close the input resource.
|
default void |
open(org.springframework.core.io.Resource resource)
Open the Json resource for reading.
|
T |
read()
Read the next object in the Json resource if any.
|
default void open(org.springframework.core.io.Resource resource) throws java.lang.Exception
resource
- the input resourcejava.lang.Exception
- if unable to open the resource@Nullable T read() throws java.lang.Exception
null
if the resource is exhaustedjava.lang.Exception
- if unable to read the next objectdefault void close() throws java.lang.Exception
java.lang.Exception
- if unable to close the input resource