public class JsonModuleSaverLoader extends Object
| Modifier and Type | Method and Description |
|---|---|
static JsonModuleSaverLoader |
getInstance() |
ModuleDefinition |
loadFromClasspath(String resourceName) |
ModuleDefinition |
loadFromFile(Path file) |
void |
writeToFile(ModuleDefinition module,
File file) |
public static JsonModuleSaverLoader getInstance()
public ModuleDefinition loadFromFile(Path file) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic ModuleDefinition loadFromClasspath(String resourceName) throws IOException
IOExceptionpublic void writeToFile(ModuleDefinition module, File file) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2016. All rights reserved.