-
- All Implemented Interfaces:
-
it.unibo.alchemist.loader.AlchemistModelProvider
public class YamlProvider implements AlchemistModelProvider
Loads YAML files via SnakeYAML.
-
-
Field Summary
Fields Modifier and Type Field Description private final RegexfileExtensionspublic final static YamlProviderINSTANCE
-
Method Summary
Modifier and Type Method Description Map<String, Object>from(String input)Reads input from a String. Map<String, Object>from(Reader input)Reads input from a Reader. Map<String, Object>from(InputStream input)Reads input from an InputStream. Map<String, Object>from(URL input)Reads input from a URL. RegexgetFileExtensions()A Regex matching the file extensions supported by this provider. -
-
Method Detail
-
from
Map<String, Object> from(InputStream input)
Reads input from an InputStream.
-
getFileExtensions
Regex getFileExtensions()
A Regex matching the file extensions supported by this provider.
-
-
-
-