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 SummaryNested Classes Modifier and Type Class Description static classAssetContent.MimeTypeEnumeration type for MimeType supported.
 - 
Constructor SummaryConstructors Constructor Description AssetContent(AssetContent.MimeType mimeType, String encodedData, int width, int height)Public Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncodedData()Gets the resource bytes encoded in Base64 format.intgetHeight()Gets the height of the resource (if any).AssetContent.MimeTypegetMimeType()Gets the MIME type of this resource in PNG, SVG, or PDF format.intgetWidth()Gets width of the resource (if any).
 
- 
- 
- 
Constructor Detail- 
AssetContentpublic 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.
 - 
getWidthpublic int getWidth() Gets width of the resource (if any). Required for PNG images.
 - 
getHeightpublic int getHeight() Gets the height of the resource (if any). Required for PNG images.
 
- 
 
-