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 and Description |
---|
ResourceSavingArgs() |
Modifier and Type | Method and 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.
|
String |
getNestedUri()
Gets the nested resource URI.
|
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 |
setNestedUri(String value)
Sets the nested resource URI.
|
void |
setStream(OutputStream value)
Sets the binary content of saved file.
|
void |
setUri(String value)
Sets the resource URI.
|
public final void closeStreamIfRequired()
Close stream if KeepStreamOpen is false, else flush it.
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.
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.
value
- the supposed file name that goes from converter to code of custom method.public final boolean getKeepStreamOpen()
Gets a value indicating whether the stream will be kept open after resource saving finishes.
public final void setKeepStreamOpen(boolean value)
Sets a value indicating whether the stream will be kept open after resource saving finishes.
value
- a value indicating whether the stream will be kept open after resource saving finishes.public final String getNestedUri()
Gets the nested resource URI.
public final void setNestedUri(String value)
Sets the nested resource URI.
value
- the nested resource URI.public final OutputStream getStream()
Gets the binary content of saved file.
public final void setStream(OutputStream value)
Sets the binary content of saved file.
value
- the binary content of saved file.public final String getUri()
Gets the resource URI.
public final void setUri(String value)
Sets the resource URI.
value
- the resource URI.