public class OscarLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OSCAR_DOT_SUFFIX
the oscar file suffix including the dot
|
static String |
OSCAR_SUFFIX
The oscar file suffix excluding the dot
|
Constructor and Description |
---|
OscarLoader(File file) |
OscarLoader(InputStream stream) |
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,Map<String,String>>> |
getData() |
Map<String,Set<String>> |
getIgnoreFields() |
static boolean |
isOscar(File file) |
static Map<String,Set<String>> |
loadIgnoreData(InputStream stream) |
static Map<String,Map<String,Map<String,String>>> |
loadJsonData(InputStream stream) |
static Map<String,Map<String,Map<String,String>>> |
loadJsonData(Reader reader) |
static int |
putAll(Map<String,Map<String,Map<String,String>>> target,
Map<String,Map<String,Map<String,String>>> data)
Put all configuration instances into the target map
|
public static final String OSCAR_SUFFIX
public static final String OSCAR_DOT_SUFFIX
public OscarLoader(InputStream stream) throws Exception
Exception
public static Map<String,Set<String>> loadIgnoreData(InputStream stream) throws Exception
Exception
public static Map<String,Map<String,Map<String,String>>> loadJsonData(InputStream stream) throws Exception
Exception
public static boolean isOscar(File file)
public static int putAll(Map<String,Map<String,Map<String,String>>> target, Map<String,Map<String,Map<String,String>>> data)
If a configuration with the same ID already exists is will be overwritten completely. Single properties of a configuration instance will not get merged.
target
- the map to put the data intodata
- the data to put, must not be null
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.