Interface ResourceReader
- All Known Implementing Classes:
Jackson2ResourceReader
,UnmarshallingResourceReader
public interface ResourceReader
- Author:
- Oliver Gierke, Christoph Strobl
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadFrom
(org.springframework.core.io.Resource resource, ClassLoader classLoader) Reads a single orCollection
of target objects from the givenResource
.
-
Method Details
-
readFrom
Object readFrom(org.springframework.core.io.Resource resource, @Nullable ClassLoader classLoader) throws Exception Reads a single orCollection
of target objects from the givenResource
.- Parameters:
resource
- must not be null.classLoader
- can be null.- Returns:
Collection
of target objects if resource contains multiple ones of single on. Never null.- Throws:
Exception
-