Class URLUtils.DataUriBinary

  • Enclosing class:
    URLUtils

    public static final class URLUtils.DataUriBinary
    extends Object
    POJO for the binary data from a data URI, with the content type.
    Since:
    7.1.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • DataUriBinary

        public DataUriBinary​(byte[] data,
                             String contentType)
        Creates a new POJO with the given data.
        Parameters:
        data - Value returned by getData().
        contentType - Value returned by getContentType().
    • Method Detail

      • getData

        public byte[] getData()
        Returns:
        The binary data from the data URI.
      • getContentType

        public String getContentType()
        Returns:
        The content type from the data URI.