Class DataURLs.Builder

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • withMediaType

        public DataURLs.Builder.WithMediaType withMediaType​(java.lang.String mediaType)
        Specifies the media type of the data URL.
        Parameters:
        mediaType - The media type for the data URL.
        Returns:
        This builder object.
        Throws:
        java.lang.NullPointerException - If the media type is null.
        java.lang.IllegalArgumentException - If the media type is invalid.
      • build

        public java.net.URL build()
        Creates a new data URL.
        Returns:
        The created data URL.
      • build

        abstract java.net.URL build​(MediaType mediaType)
      • createURL

        final java.net.URL createURL​(java.lang.String file)