Package com.inet.pdfc.config
Class SourceProfile
- java.lang.Object
-
- com.inet.pdfc.config.DefaultProfile
-
- com.inet.pdfc.config.SourceProfile
-
- All Implemented Interfaces:
IProfile
,java.io.Serializable
- Direct Known Subclasses:
XMLProfile
public class SourceProfile extends DefaultProfile
The class contains configuration data from an inputstream (for example URL). It is a read-only configuration based on this file.- 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 SourceProfile(java.io.InputStream xmlConfigFile, java.lang.String name)
Creates a new i-net PDFC configuration, based on the xmlConfigFile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadXML(java.io.InputStream xmlConfigFile, java.lang.String name)
Loads the XML configuration from a stream.-
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
-
SourceProfile
public SourceProfile(java.io.InputStream xmlConfigFile, java.lang.String name) throws java.lang.IllegalArgumentException, java.util.InvalidPropertiesFormatException
Creates a new i-net PDFC configuration, based on the xmlConfigFile.- Parameters:
xmlConfigFile
- the configuration file to load the properties fromname
- name of configuration file- 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
-
-
Method Detail
-
loadXML
protected void loadXML(java.io.InputStream xmlConfigFile, java.lang.String name) throws java.util.InvalidPropertiesFormatException, java.lang.IllegalArgumentException
Loads the XML configuration from a stream.- Parameters:
xmlConfigFile
- the configuration file to load the properties fromname
- name of configuration file- Throws:
java.util.InvalidPropertiesFormatException
- if the file is not a valid xml configuration file.java.lang.IllegalArgumentException
- in case the input stream is not readable or corrupt- Since:
- 4.0
-
-