Class SourceProfile
java.lang.Object
com.inet.pdfc.config.DefaultProfile
com.inet.pdfc.config.SourceProfile
- All Implemented Interfaces:
IProfile, Serializable
- Direct Known Subclasses:
XMLProfile
The class contains configuration data from an inputstream (for example URL). It is a read-only configuration based on
this file.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultProfile
DefaultProfile.ProfileChangeListener -
Field Summary
Fields inherited from interface IProfile
KEY_DESCRIPTION, KEY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionSourceProfile(InputStream xmlConfigFile, String name) Creates a new i-net PDFC configuration, based on the xmlConfigFile. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidloadXML(InputStream xmlConfigFile, String name) Loads the XML configuration from a stream.Methods inherited from class DefaultProfile
addProfileChangeListener, getBool, getBool, getDouble, getDouble, getInt, getInt, getObject, getObject, getProperties, getString, getString, putValue, putValue, putValues, removeProfileChangeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IProfile
addListValue, containsListValue, getList, putList, putList, removeListValue
-
Constructor Details
-
SourceProfile
public SourceProfile(InputStream xmlConfigFile, String name) throws IllegalArgumentException, 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:
IllegalArgumentException- if the configuration file does not exist.InvalidPropertiesFormatException- if the file is not a valid xml configuration file.- Since:
- 4.0
-
-
Method Details
-
loadXML
protected void loadXML(InputStream xmlConfigFile, String name) throws InvalidPropertiesFormatException, IllegalArgumentException Loads the XML configuration from a stream.- Parameters:
xmlConfigFile- the configuration file to load the properties fromname- name of configuration file- Throws:
InvalidPropertiesFormatException- if the file is not a valid xml configuration file.IllegalArgumentException- in case the input stream is not readable or corrupt- Since:
- 4.0
-