public final class ProtoLoader extends Object implements ConfigLoader
COMPONENT, COMPONENTS, CONFIG, ENTRIES, ENTRY, EXPORT, FILE, FILES, GLOBALPROPERTIES, IMPORT, INHERIT, ITEM, KEY, LEASETIME, LOCATION, NAME, PROPERTIES, PROPERTY, PROPERTYLIST, PROPERTYMAP, SERIALIZED, SERIALIZEDOBJECTS, TYPE, VALUE| Constructor and Description |
|---|
ProtoLoader(URLLoader parent,
Map<String,ConfigurationData> rpdMap,
Map<String,ConfigurationData> existingRPD,
Map<String,SerializedObject> serializedObjects,
GlobalProperties globalProperties,
boolean parseTextFormat)
Constructs a configuration loader for protobuf data.
|
public ProtoLoader(URLLoader parent, Map<String,ConfigurationData> rpdMap, Map<String,ConfigurationData> existingRPD, Map<String,SerializedObject> serializedObjects, GlobalProperties globalProperties, boolean parseTextFormat)
parent - The URL loader for this instance of the configuration manager.rpdMap - The configuration data for the current instance.existingRPD - Any pre-existing configuration data which may be inherited.serializedObjects - The current set of serialized objects.globalProperties - The global properties.parseTextFormat - Should this loader parse text protobufs or binary ones.public void load(URL url) throws ConfigLoaderException
load in interface ConfigLoaderConfigLoaderExceptionpublic void load(InputStream stream) throws ConfigLoaderException
load in interface ConfigLoaderConfigLoaderExceptionCopyright © 2022. All rights reserved.