Class TomlJReleaserConfigParser

  • All Implemented Interfaces:
    org.jreleaser.config.JReleaserConfigParser

    @ServiceProviderFor(org.jreleaser.config.JReleaserConfigParser.class)
    public class TomlJReleaserConfigParser
    extends java.lang.Object
    implements org.jreleaser.config.JReleaserConfigParser
    Since:
    0.1.0
    Author:
    Andres Almiray
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPreferredFileExtension()  
      <T> T load​(java.lang.Class<T> type, java.io.InputStream inputStream)  
      org.jreleaser.model.JReleaserModel parse​(java.io.InputStream inputStream)  
      java.util.Map<java.lang.String,​java.lang.String> properties​(java.io.InputStream inputStream)  
      boolean supports​(java.lang.String resource)  
      boolean supports​(java.nio.file.Path configFile)  
      void validate​(java.nio.file.Path configFile)  
      • Methods inherited from class java.lang.Object

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

      • TomlJReleaserConfigParser

        public TomlJReleaserConfigParser()
    • Method Detail

      • getPreferredFileExtension

        public java.lang.String getPreferredFileExtension()
        Specified by:
        getPreferredFileExtension in interface org.jreleaser.config.JReleaserConfigParser
      • supports

        public boolean supports​(java.nio.file.Path configFile)
        Specified by:
        supports in interface org.jreleaser.config.JReleaserConfigParser
      • supports

        public boolean supports​(java.lang.String resource)
        Specified by:
        supports in interface org.jreleaser.config.JReleaserConfigParser
      • validate

        public void validate​(java.nio.file.Path configFile)
                      throws java.io.IOException
        Specified by:
        validate in interface org.jreleaser.config.JReleaserConfigParser
        Throws:
        java.io.IOException
      • parse

        public org.jreleaser.model.JReleaserModel parse​(java.io.InputStream inputStream)
                                                 throws java.io.IOException
        Specified by:
        parse in interface org.jreleaser.config.JReleaserConfigParser
        Throws:
        java.io.IOException
      • load

        public <T> T load​(java.lang.Class<T> type,
                          java.io.InputStream inputStream)
                   throws java.io.IOException
        Specified by:
        load in interface org.jreleaser.config.JReleaserConfigParser
        Throws:
        java.io.IOException
      • properties

        public java.util.Map<java.lang.String,​java.lang.String> properties​(java.io.InputStream inputStream)
                                                                          throws java.io.IOException
        Specified by:
        properties in interface org.jreleaser.config.JReleaserConfigParser
        Throws:
        java.io.IOException