public class SourceProfile extends DefaultProfile
DefaultProfile.ProfileChangeListener
KEY_DESCRIPTION, KEY_NAME
Constructor and Description |
---|
SourceProfile(java.io.InputStream xmlConfigFile,
java.lang.String name)
Creates a new i-net PDFC configuration, based on the xmlConfigFile.
|
Modifier and Type | Method and Description |
---|---|
protected void |
loadXML(java.io.InputStream xmlConfigFile,
java.lang.String name)
Loads the XML configuration from a stream.
|
addProfileChangeListener, getBool, getBool, getDouble, getDouble, getInt, getInt, getObject, getObject, getProperties, getString, getString, putValue, putValue, putValues, removeProfileChangeListener
public SourceProfile(java.io.InputStream xmlConfigFile, java.lang.String name) throws java.lang.IllegalArgumentException, java.util.InvalidPropertiesFormatException
xmlConfigFile
- the configuration file to load the properties fromname
- name of configuration filejava.lang.IllegalArgumentException
- if the configuration file does not exist.java.util.InvalidPropertiesFormatException
- if the file is not a valid xml configuration file.protected void loadXML(java.io.InputStream xmlConfigFile, java.lang.String name) throws java.util.InvalidPropertiesFormatException, java.lang.IllegalArgumentException
xmlConfigFile
- the configuration file to load the properties fromname
- name of configuration filejava.util.InvalidPropertiesFormatException
- if the file is not a valid xml configuration file.java.lang.IllegalArgumentException
- in case the input stream is not readable or corruptCopyright © 2010-2022 by i-net software GmbH