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
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.