public abstract class Attachment extends Object
Represents a file attached to a document.
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
abstract byte[] |
getContent()
Gets the attached file content.
|
DocumentInfo |
getDocumentInfo()
Gets the information about a document stored in the attached file.
|
Document |
loadDocument()
Loads a document from the attached file.
|
<TDocument extends Document> |
loadDocument(Class<TDocument> documentType)
Loads a document from the attached file.
|
<TDocument extends Document> |
loadDocument(Class<TDocument> documentType,
LoadOptions loadOptions)
Loads a document from the attached file.
|
Document |
loadDocument(LoadOptions loadOptions)
Loads a document from the attached file.
|
abstract void |
setContent(byte[] value)
Sets the attached file content.
|
void |
updateDocument(Document updatedVersion)
Updates the attached document.
|
public final DocumentInfo getDocumentInfo()
Gets the information about a document stored in the attached file.
public abstract byte[] getContent()
Gets the attached file content.
public abstract void setContent(byte[] value)
Sets the attached file content.
value
- The attached file content.public final Document loadDocument()
Loads a document from the attached file.
Document
class.public final Document loadDocument(LoadOptions loadOptions)
Loads a document from the attached file.
loadOptions
- Additional options to use when loading a document.Document
class.public final <TDocument extends Document> TDocument loadDocument(Class<TDocument> documentType)
Loads a document from the attached file.
documentType
- Expected document type.
TDocument
: Expected document type.
TDocument
class.public final <TDocument extends Document> TDocument loadDocument(Class<TDocument> documentType, LoadOptions loadOptions)
Loads a document from the attached file.
loadOptions
- Additional options to use when loading a document.documentType
- Expected document type.
TDocument
: Expected document type.
TDocument
class.public final void updateDocument(Document updatedVersion)
Updates the attached document.
updatedVersion
- The updated version of the document.Copyright © 2018. All rights reserved.