Package com.thalesgroup.gemalto.d1.card
Class AssetContent
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.AssetContent
-
public class AssetContent extends Object
The Card Asset content includes the MIME type, encoded bytes, width and height of the resource.- Since:
- 1.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssetContent.MimeType
Enumeration type for MimeType supported.
-
Constructor Summary
Constructors Constructor Description AssetContent(AssetContent.MimeType mimeType, String encodedData, int width, int height)
Public Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEncodedData()
Gets the resource bytes encoded in Base64 format.int
getHeight()
Gets the height of the resource (if any).AssetContent.MimeType
getMimeType()
Gets the MIME type of this resource in PNG, SVG, or PDF format.int
getWidth()
Gets width of the resource (if any).
-
-
-
Constructor Detail
-
AssetContent
public AssetContent(@NonNull AssetContent.MimeType mimeType, @NonNull String encodedData, int width, int height)
Public Constructor
-
-
Method Detail
-
getMimeType
@NonNull public AssetContent.MimeType getMimeType()
Gets the MIME type of this resource in PNG, SVG, or PDF format.
-
getEncodedData
@NonNull public String getEncodedData()
Gets the resource bytes encoded in Base64 format.
-
getWidth
public int getWidth()
Gets width of the resource (if any). Required for PNG images.
-
getHeight
public int getHeight()
Gets the height of the resource (if any). Required for PNG images.
-
-