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