Class URLUtils.DataUriBinary

java.lang.Object
de.xima.fc.utils.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:
8.0.0
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • 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 Details

    • getContentType

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

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