Class PolyglotProperties

  • All Implemented Interfaces:
    Properties, ResourceProperties, org.refcodes.mixin.DelimiterAccessor, org.refcodes.mixin.Dumpable, org.refcodes.mixin.TypeAccessor<java.lang.String>, org.refcodes.structure.CanonicalMap, org.refcodes.structure.Containable, org.refcodes.structure.Dictionary<java.lang.String,T>, org.refcodes.structure.Keys<java.lang.String,T>, org.refcodes.structure.PathMap<java.lang.String>, org.refcodes.structure.PropertiesAccessorMixin


    public class PolyglotProperties
    extends AbstractResourcePropertiesDecorator<ResourceProperties>
    implements ResourceProperties
    Implementation of the ResourceProperties interface with support of so called "PolyglotProperties" (or just "properties"). For PolyglotProperties, see "https://en.wikipedia.org/wiki/.properties".
    • Constructor Detail

      • PolyglotProperties

        public PolyglotProperties​(java.lang.Object aObj)
        Create a PolyglotProperties instance containing the elements as of PathMap.MutablePathMap.insert(Object) using the default path delimiter "/" (Delimiter.PATH) for the path declarations: "Inspects the given object and adds all elements found in the given object. Elements of type Map, Collection and arrays are identified and handled as of their type: The path for each value in a Map is appended with its according key. The path for each value in a Collection or array is appended with its according index of occurrence (in case of a List or an array, its actual index). In case of reflection, the path for each member is appended with its according mamber's name. All elements (e.g. the members and values) are inspected recursively which results in the according paths of the terminating values."
        Parameters:
        aObj - The object from which the elements are to be added.
      • PolyglotProperties

        public PolyglotProperties​(Properties aProperties)
        Create a PolyglotProperties instance containing the elements of the provided Properties instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
        Parameters:
        aProperties - the properties to be added.
      • PolyglotProperties

        public PolyglotProperties​(java.util.Map<?,?> aProperties)
        Create a PolyglotProperties instance containing the elements of the provided Map instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
        Parameters:
        aProperties - the properties to be added.
      • PolyglotProperties

        public PolyglotProperties​(java.io.File aFile)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given File.
        Parameters:
        aFile - The File from which to load the properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.io.File aFile,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given File.
        Parameters:
        aFile - The File from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.io.File aFile,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads or seeks the PolyglotProperties from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFile - The File from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.io.File aFile,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads or seeks the PolyglotProperties from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFile - The File from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.String aFilePath)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.String aFilePath,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.net.URL aUrl)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given URL.
        Parameters:
        aUrl - The URL from which to read the properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.net.URL aUrl,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given URL.
        Parameters:
        aUrl - The URL from which to read the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.io.InputStream aInputStream)
                           throws java.io.IOException,
                                  java.text.ParseException
        Reads the PolyglotProperties from the given InputStream.
        Parameters:
        aInputStream - The InputStream from which to read the properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(java.io.InputStream aInputStream,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Reads the PolyglotProperties from the given InputStream.
        Parameters:
        aInputStream - The InputStream from which to read the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.Object aObj)
        Create a PolyglotProperties instance containing the elements as of PathMap.MutablePathMap.insert(Object) using the default path delimiter "/" (Delimiter.PATH) for the path declarations: "Inspects the given object and adds all elements found in the given object. Elements of type Map, Collection and arrays are identified and handled as of their type: The path for each value in a Map is appended with its according key. The path for each value in a Collection or array is appended with its according index of occurrence (in case of a List or an array, its actual index). In case of reflection, the path for each member is appended with its according mamber's name. All elements (e.g. the members and values) are inspected recursively which results in the according paths of the terminating values."
        Parameters:
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        aObj - The object from which the elements are to be added.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.util.Map<?,?> aProperties)
        Create a PolyglotProperties instance containing the elements of the provided Map instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
        Parameters:
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        aProperties - the properties to be added.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.io.File aFile)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given File.
        Parameters:
        aFile - The File from which to load the properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.io.File aFile,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given File.
        Parameters:
        aFile - The File from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.io.File aFile,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads or seeks the PolyglotProperties from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFile - The File from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.io.File aFile,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads or seeks the PolyglotProperties from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFile - The File from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.String aFilePath)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.String aFilePath,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path.
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.lang.Class<?> aResourceClass,
                                  java.lang.String aFilePath,
                                  org.refcodes.runtime.ConfigLocator aConfigLocator,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.net.URL aUrl)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given URL.
        Parameters:
        aUrl - The URL from which to read the properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.net.URL aUrl,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Loads the PolyglotProperties from the given URL.
        Parameters:
        aUrl - The URL from which to read the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.io.InputStream aInputStream)
                           throws java.io.IOException,
                                  java.text.ParseException
        Reads the PolyglotProperties from the given InputStream.
        Parameters:
        aInputStream - The InputStream from which to read the properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • PolyglotProperties

        public PolyglotProperties​(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
                                  java.io.InputStream aInputStream,
                                  char... aDelimiters)
                           throws java.io.IOException,
                                  java.text.ParseException
        Reads the PolyglotProperties from the given InputStream.
        Parameters:
        aInputStream - The InputStream from which to read the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        aPropertiesFactory - The factory to use when constructing ResourceProperties instances.
        Throws:
        java.io.IOException - thrown in case accessing or processing the properties file failed.
        java.text.ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.