public abstract class Attachment extends Object
Learn more
Modifier | Constructor and Description |
---|---|
protected |
Attachment()
Initializes a new instance of the
class. |
Modifier and Type | Method and Description |
---|---|
Watermarker |
createWatermarker()
Loads a content from the attached file.
|
Watermarker |
createWatermarker(LoadOptions loadOptions)
Loads a content from the attached file with the specified load options.
|
Watermarker |
createWatermarker(LoadOptions loadOptions,
WatermarkerSettings watermarkerSettings)
Loads a content from the attached file with the specified load options and settings.
|
abstract byte[] |
getContent()
Gets the attached file content.
|
IDocumentInfo |
getDocumentInfo()
Gets the information about a document stored in the attached file.
|
abstract void |
setContent(byte[] value)
Sets the attached file content.
|
void |
updateContent(Watermarker updatedVersion)
Updates the attached content.
|
protected Attachment()
Attachment
class.public final IDocumentInfo getDocumentInfo()
IDocumentInfo
instance that contains detected information.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 Watermarker createWatermarker()
Content
class.public final Watermarker createWatermarker(LoadOptions loadOptions)
loadOptions
- Additional options to use when loading an attachment content.Content
class.public final Watermarker createWatermarker(LoadOptions loadOptions, WatermarkerSettings watermarkerSettings)
loadOptions
- Additional options to use when loading an attachment content.watermarkerSettings
- Additional settings to use when working with loaded document.Content
class.public final void updateContent(Watermarker updatedVersion)
Updates the attached content.
updatedVersion
- The updated version of the content.