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.
|
com.aspose.ms.System.IO.Stream |
getContentStream()
Gets a stream from the attached file.
|
IDocumentInfo |
getDocumentInfo()
Gets the information about a document stored in the attached file.
|
abstract void |
setContent(byte[] value)
Sets the attached file content.
|
void |
setContentStream(com.aspose.ms.System.IO.Stream stream)
Updates attached file from a stream.
|
void |
updateContent(Watermarker updatedVersion)
Updates the attached content.
|
protected Attachment()
Attachment class.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 abstract byte[] getContent()
Gets the attached file content.
public com.aspose.ms.System.IO.Stream getContentStream()
Gets a stream from the attached file.
public final IDocumentInfo getDocumentInfo()
IDocumentInfo instance that contains detected information.public abstract void setContent(byte[] value)
Sets the attached file content.
value - The attached file content.public void setContentStream(com.aspose.ms.System.IO.Stream stream)
Updates attached file from a stream.
stream - The stream to update attached file from.public final void updateContent(Watermarker updatedVersion)
Updates the attached content.
updatedVersion - The updated version of the content.Copyright © 2026. All rights reserved.