Class ConfigParser.Content.Builder

    • Method Detail

      • data

        public ConfigParser.Content.Builder data​(InputStream data)
        Data of the config source as loaded from underlying storage.
        Parameters:
        data - to be parsed
        Returns:
        updated builder instance
      • mediaType

        public ConfigParser.Content.Builder mediaType​(String mediaType)
        Media type of the content if known by the config source. Media type is configured on content, as sometimes you need the actual file to exist to be able to "guess" its media type, and this is the place we are sure it exists.
        Parameters:
        mediaType - media type of the content as understood by the config source
        Returns:
        updated builder instance
      • charset

        public ConfigParser.Content.Builder charset​(Charset charset)
        Configure charset if known by the config source.
        Parameters:
        charset - charset to use if the content should be read using a reader
        Returns:
        updated builder instance