public class UnmarshallingResourceReader extends Object implements ResourceReader
ResourceReader.Type| Constructor and Description |
|---|
UnmarshallingResourceReader(Unmarshaller unmarshaller) |
| Modifier and Type | Method and Description |
|---|---|
Object |
readFrom(Resource resource,
ClassLoader classLoader)
Reads a single or
Collection of target objects from the given Resource. |
public UnmarshallingResourceReader(Unmarshaller unmarshaller)
unmarshaller - public Object readFrom(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–2020 Pivotal Software, Inc.. All rights reserved.