ResourceSavingArgs
Overview
ResourceSavingArgs is a class in Aspose.Words FOSS for Java.
Provides data for the IResourceSavingCallback.resourceSaving() event.
Edition status of its 14 listed members (a property and its accessor methods are listed separately, overloads once): 14 not yet exercised by a verified example.
This class declares 9 methods for ResourceSavingArgs objects in Java programs.
Available methods include: getDocument, getKeepResourceStreamOpen, getResourceFileName, getResourceFileUri, getResourceStream, setKeepResourceStreamOpen, setResourceFileName, setResourceFileUri, setResourceStream.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: document, keepResourceStreamOpen, resourceFileName, resourceFileUri, resourceStream.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
document | Document | Read | Gets the document object that is currently being saved. |
resourceFileName | String | Read/Write | Gets or sets the file name (without path) where the resource will be saved to. |
resourceFileUri | String | Read/Write | Gets or sets the uniform resource identifier (URI) used to reference the resource file from the document. |
keepResourceStreamOpen | boolean | Read/Write | Specifies whether Aspose.Words should keep the stream open or close it after saving a resource. |
resourceStream | java.io.OutputStream | Read/Write | Gets or sets the resource stream. |
Methods
| Signature | Description |
|---|---|
getDocument() → Document | Gets the document object that is currently being saved. |
getResourceFileName() → String | Gets or sets the file name (without path) where the resource will be saved to. |
setResourceFileName(value: String) | Sets the resource file name value. |
getResourceFileUri() → String | Gets or sets the uniform resource identifier (URI) used to reference the resource file from the document. |
setResourceFileUri(value: String) | Sets the resource file uri value. |
getKeepResourceStreamOpen() → boolean | Specifies whether Aspose.Words should keep the stream open or close it after saving a resource. |
setKeepResourceStreamOpen(value: boolean) | Sets the keep resource stream open value. |
getResourceStream() → java.io.OutputStream | Returns the resource stream. |
setResourceStream(value: java.io.OutputStream) | Sets the resource stream value. |