public class CalendarWriter extends Object implements com.aspose.ms.System.IDisposable, Closeable
Allows write the set of Events in one ics file or stream.
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.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dispose()
Releases all resources used by the CalendarWriter object.
|
void |
write(Appointment appointment)
Writes appointment in underlying stream.
|
public CalendarWriter(String path)
Initializes a new instance of CalendarReader with source file and default IcsSaveOptions.
path
- Path to source file.public CalendarWriter(com.aspose.ms.System.IO.Stream stream)
Initializes a new instance of CalendarReader with source stream and default IcsSaveOptions.
stream
- Source stream.public CalendarWriter(String path, IcsSaveOptions icsSaveOptions)
Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions.
path
- Path to source file.icsSaveOptions
- Additional IcsSaveOptions.public CalendarWriter(com.aspose.ms.System.IO.Stream stream, IcsSaveOptions icsSaveOptions)
Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions.
stream
- Source stream.icsSaveOptions
- Additional IcsSaveOptions.public final void write(Appointment appointment)
Writes appointment in underlying stream.
appointment
- Source appointmentpublic final void dispose()
Releases all resources used by the CalendarWriter object.
dispose
in interface com.aspose.ms.System.IDisposable
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.