ResourceSavingArgs

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

NameTypeAccessDescription
documentDocumentReadGets the document object that is currently being saved.
resourceFileNameStringRead/WriteGets or sets the file name (without path) where the resource will be saved to.
resourceFileUriStringRead/WriteGets or sets the uniform resource identifier (URI) used to reference the resource file from the document.
keepResourceStreamOpenbooleanRead/WriteSpecifies whether Aspose.Words should keep the stream open or close it after saving a resource.
resourceStreamjava.io.OutputStreamRead/WriteGets or sets the resource stream.

Methods

SignatureDescription
getDocument() → DocumentGets the document object that is currently being saved.
getResourceFileName() → StringGets or sets the file name (without path) where the resource will be saved to.
setResourceFileName(value: String)Sets the resource file name value.
getResourceFileUri() → StringGets 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() → booleanSpecifies 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.OutputStreamReturns the resource stream.
setResourceStream(value: java.io.OutputStream)Sets the resource stream value.

See Also