Package com.inet.pdfc.config
Class XMLProfile
- java.lang.Object
-
- com.inet.pdfc.config.DefaultProfile
-
- com.inet.pdfc.config.SourceProfile
-
- com.inet.pdfc.config.XMLProfile
-
- All Implemented Interfaces:
IProfile
,java.io.Serializable
public class XMLProfile extends SourceProfile
The class contains configuration data from an XML file. It is a read-only profile based on this file.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inet.pdfc.config.DefaultProfile
DefaultProfile.ProfileChangeListener
-
-
Field Summary
-
Fields inherited from interface com.inet.pdfc.config.IProfile
KEY_DESCRIPTION, KEY_NAME
-
-
Constructor Summary
Constructors Constructor Description XMLProfile(java.io.File xmlProfileFile)
Creates a new i-net PDFC configuration, based on the xmlProfileFile.
-
Method Summary
-
Methods inherited from class com.inet.pdfc.config.SourceProfile
loadXML
-
Methods inherited from class com.inet.pdfc.config.DefaultProfile
addProfileChangeListener, getBool, getBool, getDouble, getDouble, getInt, getInt, getObject, getObject, getProperties, getString, getString, putValue, putValue, putValues, removeProfileChangeListener
-
-
-
-
Constructor Detail
-
XMLProfile
public XMLProfile(java.io.File xmlProfileFile) throws java.lang.IllegalArgumentException, java.util.InvalidPropertiesFormatException
Creates a new i-net PDFC configuration, based on the xmlProfileFile.- Parameters:
xmlProfileFile
- the configuration file to load the properties from- Throws:
java.lang.IllegalArgumentException
- if the configuration file does not exist.java.util.InvalidPropertiesFormatException
- if the file is not a valid xml configuration file.- Since:
- 4.0
-
-