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 |
---|---|
Appointment |
getCurrent()
Current read event.
|
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 boolean nextEvent()
Reads next Event from source and save it to the Current.