public class UnmarshallingResourceReader extends Object implements ResourceReader
ResourceReader.Type| Constructor and Description |
|---|
UnmarshallingResourceReader(org.springframework.oxm.Unmarshaller unmarshaller) |
| Modifier and Type | Method and Description |
|---|---|
Object |
readFrom(org.springframework.core.io.Resource resource,
ClassLoader classLoader)
Reads a single or
Collection of target objects from the given Resource. |
public UnmarshallingResourceReader(org.springframework.oxm.Unmarshaller unmarshaller)
unmarshaller - public Object readFrom(org.springframework.core.io.Resource resource, @Nullable ClassLoader classLoader) throws IOException
ResourceReaderCollection of target objects from the given Resource.readFrom in interface ResourceReaderresource - must not be null.classLoader - can be null.Collection of target objects if resource contains multiple ones of single on. Never
null.IOExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.