public class CalendarReader extends Object
Allows read the calendar with multi events to the Appointment object from a file or stream.
| Constructor and Description |
|---|
CalendarReader(InputStream stream)
Initializes a new instance of CalendarReader with source stream and default Appointment LoadOptions.
|
CalendarReader(InputStream stream,
AppointmentLoadOptions options)
Initializes a new instance of CalendarReader with source stream and Appointment LoadOptions.
|
CalendarReader(String path)
Initializes a new instance of CalendarReader with source file and default Appointment LoadOptions.
|
CalendarReader(String path,
AppointmentLoadOptions options)
Initializes a new instance of CalendarReader with source file and Appointment LoadOptions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Gets the number of Vevent components.
|
Appointment |
getCurrent()
Current read event.
|
int |
getMethod()
Gets the iCalendar object method type associated with the calendar object.
|
String |
getVersion()
Gets the Version of calendar.
|
boolean |
isMultiEvents()
Gets whether calendar contains multi events.
|
List<Appointment> |
loadAsMultiple()
Loads a list of events from a calendar with multiple events.
|
boolean |
nextEvent()
Reads next Event from source and save it to the Current.
|
public CalendarReader(String path)
Initializes a new instance of CalendarReader with source file and default Appointment LoadOptions.
path - Path to source file.public CalendarReader(String path, AppointmentLoadOptions options)
Initializes a new instance of CalendarReader with source file and Appointment LoadOptions.
path - Path to source file.options - Additional LoadOptions.public CalendarReader(InputStream stream)
Initializes a new instance of CalendarReader with source stream and default Appointment LoadOptions.
stream - Source stream.public CalendarReader(InputStream stream, AppointmentLoadOptions options)
Initializes a new instance of CalendarReader with source stream and Appointment LoadOptions.
stream - Source stream.options - Additional LoadOptions.public final Appointment getCurrent()
Current read event.
public final String getVersion()
Gets the Version of calendar.
public final int getCount()
Gets the number of Vevent components.
public final boolean isMultiEvents()
Gets whether calendar contains multi events.
public final int getMethod()
Gets the iCalendar object method type associated with the calendar object.
public final List<Appointment> loadAsMultiple()
Loads a list of events from a calendar with multiple events.
public final boolean nextEvent()
Reads next Event from source and save it to the Current.
Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.