com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class 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 Detail

      • ResourceSavingArgs

        public ResourceSavingArgs()
    • Method Detail

      • closeStreamIfRequired

        public void closeStreamIfRequired()
                                   throws IOException

        Close stream if KeepStreamOpen is false, else flush it.

        Throws:
        IOException
      • getFileName

        public 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 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 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 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 OutputStream getStream()

        Gets the binary content of saved file.

        Returns:
        the binary content of saved file.
      • setStream

        public void setStream(OutputStream value)

        Sets the binary content of saved file.

        Parameters:
        value - the binary content of saved file.
      • getUri

        public String getUri()

        Gets the resource URI.

        Returns:
        the resource URI.
      • setUri

        public void setUri(String value)

        Sets the resource URI.

        Parameters:
        value - the resource URI.