Class XmlConfigurationFileFormat

  • All Implemented Interfaces:
    io.confound.config.file.ConfigurationFileFormat

    public class XmlConfigurationFileFormat
    extends java.lang.Object
    implements io.confound.config.file.ConfigurationFileFormat
    File format implementation for a configuration stored in XML format.

    This implementation recognizes files with the extension suffix "xml".

    Author:
    Magno N A Cruz
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FILENAME_EXTENSION
      The supported extension suffix.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getFilenameExtensions()  
      io.confound.config.Configuration load​(java.io.InputStream inputStream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FILENAME_EXTENSION

        public static final java.lang.String FILENAME_EXTENSION
        The supported extension suffix.
        See Also:
        Constant Field Values
    • Constructor Detail

      • XmlConfigurationFileFormat

        public XmlConfigurationFileFormat()
    • Method Detail

      • getFilenameExtensions

        public java.util.Set<java.lang.String> getFilenameExtensions()
        Specified by:
        getFilenameExtensions in interface io.confound.config.file.ConfigurationFileFormat
      • load

        public io.confound.config.Configuration load​(@Nonnull
                                                     java.io.InputStream inputStream)
                                              throws java.io.IOException
        Specified by:
        load in interface io.confound.config.file.ConfigurationFileFormat
        Throws:
        java.io.IOException