Class ResourceSavingArgs
- java.lang.Object
-
- com.aspose.tasks.ResourceSavingArgs
-
- Direct Known Subclasses:
CssSavingArgs
,FontSavingArgs
,ImageSavingArgs
public class ResourceSavingArgs extends Object
This class represents set of data that related to external resource file's saving that occurs during conversion to HTML format.
-
-
Constructor Summary
Constructors Constructor Description ResourceSavingArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeStreamIfRequired()
Close stream if KeepStreamOpen is false, else flush it.String
getFileName()
Gets the supposed file name that goes from converter to code of custom method.boolean
getKeepStreamOpen()
Gets a value indicating whether the stream will be kept open after resource saving finishes.OutputStream
getStream()
Gets the binary content of saved file.String
getUri()
Gets the resource URI.void
setFileName(String value)
Sets the supposed file name that goes from converter to code of custom method.void
setKeepStreamOpen(boolean value)
Sets a value indicating whether the stream will be kept open after resource saving finishes.void
setStream(OutputStream value)
Sets the binary content of saved file.void
setUri(String value)
Sets the resource URI.
-
-
-
Method Detail
-
closeStreamIfRequired
public final void closeStreamIfRequired()
Close stream if KeepStreamOpen is false, else flush it.
-
getFileName
public final String getFileName()
Gets the supposed file name that goes from converter to code of custom method. Can be use in custom code to decide how to process or where save that file.
- Returns:
- the supposed file name that goes from converter to code of custom method.
-
setFileName
public final void setFileName(String value)
Sets the supposed file name that goes from converter to code of custom method. Can be use in custom code to decide how to process or where save that file.
- Parameters:
value
- the supposed file name that goes from converter to code of custom method.
-
getKeepStreamOpen
public final boolean getKeepStreamOpen()
Gets a value indicating whether the stream will be kept open after resource saving finishes.
- Returns:
- a value indicating whether the stream will be kept open after resource saving finishes.
-
setKeepStreamOpen
public final void setKeepStreamOpen(boolean value)
Sets a value indicating whether the stream will be kept open after resource saving finishes.
- Parameters:
value
- a value indicating whether the stream will be kept open after resource saving finishes.
-
getStream
public final OutputStream getStream()
Gets the binary content of saved file.
- Returns:
- the binary content of saved file.
-
setStream
public final void setStream(OutputStream value)
Sets the binary content of saved file.
- Parameters:
value
- the binary content of saved file.
-
getUri
public final String getUri()
Gets the resource URI.
- Returns:
- the resource URI.
-
setUri
public final void setUri(String value)
Sets the resource URI.
- Parameters:
value
- the resource URI.
-
-