com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class CalendarWriter

  • All Implemented Interfaces:
    IDisposable, Closeable, AutoCloseable


    public class CalendarWriter
    extends Object
    implements IDisposable, Closeable

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

    • Constructor Summary

      Constructors 
      Constructor and Description
      CalendarWriter(Stream stream)
      Initializes a new instance of CalendarReader with source stream and default AppointmentIcsSaveOptions.
      CalendarWriter(Stream stream, AppointmentIcsSaveOptions icsSaveOptions)
      Initializes a new instance of CalendarReader with source file and additional AppointmentIcsSaveOptions.
      CalendarWriter(String path)
      Initializes a new instance of CalendarReader with source file and default AppointmentIcsSaveOptions.
      CalendarWriter(String path, AppointmentIcsSaveOptions icsSaveOptions)
      Initializes a new instance of CalendarReader with source file and additional AppointmentIcsSaveOptions.
    • Constructor Detail

      • CalendarWriter

        public CalendarWriter(String path)

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

        Parameters:
        path - Path to source file.
      • CalendarWriter

        public CalendarWriter(Stream stream)

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

        Parameters:
        stream - Source stream.
      • CalendarWriter

        public CalendarWriter(String path,
                      AppointmentIcsSaveOptions icsSaveOptions)

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

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

        public CalendarWriter(Stream stream,
                      AppointmentIcsSaveOptions icsSaveOptions)

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

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

      • write

        public final void write(Appointment appointment)

        Writes appointment in underlying stream.

        Parameters:
        appointment - Source appointment
      • dispose

        public final void dispose()

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

        Specified by:
        dispose in interface IDisposable
      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and - optionally - managed resources.

        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.