com.aspose.html.io

Class FileCreateStreamProvider

    • Constructor Detail

      • FileCreateStreamProvider

        public FileCreateStreamProvider()

        Initializes a new instance of the FileCreateStreamProvider class.

      • FileCreateStreamProvider

        public FileCreateStreamProvider(String name)

        Initializes a new instance of the FileCreateStreamProvider class.

        Parameters:
        name - The file name.
      • FileCreateStreamProvider

        public FileCreateStreamProvider(String directory,
                                        String name)

        Initializes a new instance of the FileCreateStreamProvider class.

        Parameters:
        directory - The directory.
        name - The file name.
    • Method Detail

      • getDirectory

        public String getDirectory()

        Gets or sets the directory.

        Value: The directory.
      • setDirectory

        public void setDirectory(String value)

        Gets or sets the directory.

        Value: The directory.
      • getName

        public String getName()

        Gets or sets the name.

        Value: The name.
      • setName

        public void setName(String value)

        Gets or sets the name.

        Value: The name.
      • getStream

        public com.aspose.ms.System.IO.Stream getStream(String name,
                                                        String extension)

        Provides a stream for rendering.

        Specified by:
        getStream in interface ICreateStreamProvider
        Parameters:
        name - The name of the stream.
        extension - The file name extension to use if a file stream is being created.
        Returns:
        A Stream object that is used for writing data during the rendering operations.
      • getStream

        public com.aspose.ms.System.IO.Stream getStream(String name,
                                                        String extension,
                                                        int page)

        Provides a stream for rendering.

        Specified by:
        getStream in interface ICreateStreamProvider
        Parameters:
        name - The name of the stream.
        extension - The file name extension to use if a file stream is being created.
        page - The page number of the document.
        Returns:
        A Stream object that is used for writing data during the rendering operations.
      • releaseStream

        public void releaseStream(com.aspose.ms.System.IO.Stream stream)

        Releases the stream.

        Specified by:
        releaseStream in interface ICreateStreamProvider
        Parameters:
        stream - The stream being released.
      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable