public class MapperProvider
extends java.lang.Object
IMappingFormats and gets information from them.| Constructor and Description |
|---|
MapperProvider() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
fetchFromLocalOrRemote(java.lang.String location)
Gets a resource and parses it into a
List of Strings. |
static IMappingFormat |
getMapper(java.util.List<java.lang.String> data)
Loads all valid parsers available in the classpath (via the Java Service API),
attempts to load the resource at given location and to populate a mapper with
its data.
|
public static IMappingFormat getMapper(java.util.List<java.lang.String> data)
data - the file as a list of stringsIMappingFormat (populating it is left to the user)public static java.util.List<java.lang.String> fetchFromLocalOrRemote(java.lang.String location)
List of Strings.location - either a URL or a local pathList containing the lines of the resourceInvalidResourceException - if provided an invalid resource