public class FileAttachmentWrapper extends Object implements Serializable
PrefillData
data
in the form.Constructor and Description |
---|
FileAttachmentWrapper(String fileName,
String contentType,
byte[] bytes)
Creates file attachment wrapper object using file name, content type and
file binary as bytes
|
FileAttachmentWrapper(String fileName,
String contentType,
byte[] bytes,
String dataRef)
Creates file attachment wrapper object using file name, content type, file binary as bytes
and reference to the data model
|
FileAttachmentWrapper(String fileName,
String contentType,
byte[] bytes,
String uri,
String dataRef) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns the content type of the file binary
|
String |
getDataRef()
Returns reference to the data model
|
String |
getFileName()
Deprecated.
|
String |
getFileNameV2()
Returns the file name of the file attachment
|
InputStream |
getInputStream()
Returns input stream for the bytes
|
String |
getUri()
URI of file attachment wrapper.
|
String |
getUuid()
Returns the unique identifier of the file attachment
|
byte[] |
getValue()
Returns the bytes for the binary
|
void |
setContentType(String contentType)
Sets the content type of the file binary
|
void |
setDatRef(String dataRef)
Sets the reference to the data model
|
void |
setFileName(String fileName)
Sets the file name of the file attachment
|
void |
setUri(String uri)
Sets the URI of the file attachment
|
void |
setUuid(String uuid)
sets unique identifier for the file attachments
|
String |
toJson()
Returns serialized version of file attachment wrapper as a json string
|
public FileAttachmentWrapper(String fileName, String contentType, byte[] bytes)
fileName
- file namecontentType
- content type of the file binarybytes
- bytes of the filepublic FileAttachmentWrapper(String fileName, String contentType, byte[] bytes, String dataRef)
fileName
- file namecontentType
- content type of the file binarybytes
- byte of the filedataRef
- reference to the data modelpublic String getFileName()
public String getFileNameV2()
public String getContentType()
public String getDataRef()
public void setFileName(String fileName)
fileName
- file name of the attachmentpublic void setUri(String uri)
uri
- uri of the file attachmentpublic void setContentType(String contentType)
contentType
- content type of the file binarypublic void setDatRef(String dataRef)
dataRef
- reference to the data modelpublic InputStream getInputStream()
public byte[] getValue()
public String getUri()
public String getUuid()
public void setUuid(String uuid)
uuid
- {String} uuid represented as stringpublic String toJson()
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.