public class Attachment extends Object
| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
addAttachment(String attachmentInput,
String contentTypeInput) |
static String |
generateSha2(byte[] bytes) |
String |
getContentType() |
HashMap<String,String> |
getDescription() |
HashMap<String,String> |
getDisplay() |
URI |
getFileUrl() |
int |
getLength() |
String |
getSha2() |
URI |
getUsageType() |
com.google.gson.JsonElement |
serialize() |
void |
setDescription(HashMap<String,String> description) |
void |
setDisplay(HashMap<String,String> display) |
void |
setFileUrl(URI fileUrl) |
void |
setUsageType(URI usageType) |
public static String generateSha2(byte[] bytes) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic byte[] addAttachment(String attachmentInput, String contentTypeInput) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmExceptionIOExceptionpublic URI getUsageType()
public void setUsageType(URI usageType)
public String getContentType()
public int getLength()
public String getSha2()
public URI getFileUrl()
public void setFileUrl(URI fileUrl)
public com.google.gson.JsonElement serialize()
Copyright © 2017. All rights reserved.