public class ConfigSaver
extends java.lang.Object
ExtractionController
Modifier and Type | Field and Description |
---|---|
(package private) static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getSerializedResult(ExtractionResult result) |
static java.lang.String |
hash(ModuleConfiguration config)
Calculates a MD5 hash String for a ModuleConfiguration.
|
static ModuleConfiguration |
loadModuleConfiguration(java.io.File source)
Loads a ModuleConfiguration from File
|
static ModuleConfiguration |
loadModuleConfiguration(java.io.InputStream source)
Load a ModuleConfiguration from JSON file.
|
static ModuleConfiguration |
loadModuleConfiguration(java.lang.String source)
Load a ModuleConfiguration from JSON file.
|
static java.util.HashSet<java.nio.file.Path> |
loadPathSet(java.lang.String fileName)
Loads a set of Paths from file.
|
static void |
saveModuleConfiguration(java.io.File destination,
ModuleConfiguration conf)
Saves a ModuleConfiguration to file.
|
static java.lang.String |
saveModuleConfiguration(ModuleConfiguration config) |
static void |
saveModuleConfiguration(java.io.OutputStream destiantion,
ModuleConfiguration config)
Saves a ModuleConfiguration to an OutputStream
|
static void |
savePartSet(java.util.HashSet<Part> data,
java.lang.String fileName)
Saves a set of Part classes to file.
|
static void |
savePathSet(java.util.HashSet<java.nio.file.Path> paths,
java.lang.String fileName)
Saves a set of Paths to file.
|
public static void savePartSet(java.util.HashSet<Part> data, java.lang.String fileName)
data
- fileName
- public static void savePathSet(java.util.HashSet<java.nio.file.Path> paths, java.lang.String fileName)
paths
- fileName
- public static java.util.HashSet<java.nio.file.Path> loadPathSet(java.lang.String fileName)
fileName
- public static ModuleConfiguration loadModuleConfiguration(java.io.File source)
source
- public static ModuleConfiguration loadModuleConfiguration(java.io.InputStream source)
source
- public static ModuleConfiguration loadModuleConfiguration(java.lang.String source)
source
- public static void saveModuleConfiguration(java.io.File destination, ModuleConfiguration conf)
destination
- conf
- public static java.lang.String hash(ModuleConfiguration config)
config
- public static void saveModuleConfiguration(java.io.OutputStream destiantion, ModuleConfiguration config)
destiantion
- config
- public static java.lang.String saveModuleConfiguration(ModuleConfiguration config) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
public static java.lang.String getSerializedResult(ExtractionResult result) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException