com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class CalendarWriter

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


    public class CalendarWriter
    extends Object
    implements com.aspose.ms.System.IDisposable

    Allows write the set of Events in one ics file or stream.

    • Constructor Summary

      Constructors 
      Constructor and Description
      CalendarWriter(com.aspose.ms.System.IO.Stream stream)
      Initializes a new instance of CalendarReader with source stream and default IcsSaveOptions.
      CalendarWriter(com.aspose.ms.System.IO.Stream stream, IcsSaveOptions icsSaveOptions)
      Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions.
      CalendarWriter(String path)
      Initializes a new instance of CalendarReader with source file and default IcsSaveOptions.
      CalendarWriter(String path, IcsSaveOptions icsSaveOptions)
      Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions.
    • Constructor Detail

      • CalendarWriter

        public CalendarWriter(String path)

        Initializes a new instance of CalendarReader with source file and default IcsSaveOptions.

        Parameters:
        path - Path to source file.
      • CalendarWriter

        public CalendarWriter(com.aspose.ms.System.IO.Stream stream)

        Initializes a new instance of CalendarReader with source stream and default IcsSaveOptions.

        Parameters:
        stream - Source stream.
      • CalendarWriter

        public CalendarWriter(String path,
                      IcsSaveOptions icsSaveOptions)

        Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions.

        Parameters:
        path - Path to source file.
        icsSaveOptions - Additional IcsSaveOptions.
      • CalendarWriter

        public CalendarWriter(com.aspose.ms.System.IO.Stream stream,
                      IcsSaveOptions icsSaveOptions)

        Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions.

        Parameters:
        stream - Source stream.
        icsSaveOptions - Additional IcsSaveOptions.
    • Method Detail

      • write

        public final void write(Appointment appointment)

        Writes appointment in underlying stream.

        Parameters:
        appointment - Source appointment
      • dispose

        public final void dispose()

        Releases all resources used by the CalendarWriter object.

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