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
ResourceReader
Collection
of target objects from the given Resource
.readFrom
in interface ResourceReader
resource
- must not be null.classLoader
- can be null.Collection
of target objects if resource contains multiple ones of single on. Never
null.IOException
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.