CalendarWriter

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public class CalendarWriter implements System.IDisposable, Closeable

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

Constructors

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

Methods

Method Description
write(Appointment appointment) Writes appointment in underlying stream.
dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
close()

CalendarWriter(String path)

public CalendarWriter(String path)

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

Parameters:

Parameter Type Description
path java.lang.String Path to source file.

CalendarWriter(System.IO.Stream stream)

public CalendarWriter(System.IO.Stream stream)

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

Parameters:

Parameter Type Description
stream com.aspose.ms.System.IO.Stream Source stream.

CalendarWriter(String path, AppointmentIcsSaveOptions icsSaveOptions)

public CalendarWriter(String path, AppointmentIcsSaveOptions icsSaveOptions)

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

Parameters:

Parameter Type Description
path java.lang.String Path to source file.
icsSaveOptions AppointmentIcsSaveOptions Additional AppointmentIcsSaveOptions.

CalendarWriter(System.IO.Stream stream, AppointmentIcsSaveOptions icsSaveOptions)

public CalendarWriter(System.IO.Stream stream, AppointmentIcsSaveOptions icsSaveOptions)

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

Parameters:

Parameter Type Description
stream com.aspose.ms.System.IO.Stream Source stream.
icsSaveOptions AppointmentIcsSaveOptions Additional AppointmentIcsSaveOptions.

write(Appointment appointment)

public final void write(Appointment appointment)

Writes appointment in underlying stream.

Parameters:

Parameter Type Description
appointment Appointment Source appointment

dispose()

public final void dispose()

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

close()

public void close()