CalendarReader

Inheritance: java.lang.Object

public class CalendarReader

Allows read the calendar with multi events to the Appointment object from a file or stream.

Constructors

Constructor Description
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.
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.

Methods

Method Description
getCurrent() Current read event.
nextEvent() Reads next Event from source and save it to the Current.

CalendarReader(String path)

public CalendarReader(String path)

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

Parameters:

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

CalendarReader(String path, AppointmentLoadOptions options)

public CalendarReader(String path, AppointmentLoadOptions options)

Initializes a new instance of CalendarReader with source file and Appointment LoadOptions.

Parameters:

Parameter Type Description
path java.lang.String Path to source file.
options AppointmentLoadOptions Additional LoadOptions.

CalendarReader(InputStream stream)

public CalendarReader(InputStream stream)

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

Parameters:

Parameter Type Description
stream java.io.InputStream Source stream.

CalendarReader(InputStream stream, AppointmentLoadOptions options)

public CalendarReader(InputStream stream, AppointmentLoadOptions options)

Initializes a new instance of CalendarReader with source stream and Appointment LoadOptions.

Parameters:

Parameter Type Description
stream java.io.InputStream Source stream.
options AppointmentLoadOptions Additional LoadOptions.

getCurrent()

public final Appointment getCurrent()

Current read event.

Returns: Appointment

nextEvent()

public final boolean nextEvent()

Reads next Event from source and save it to the Current.

Returns: boolean - True if success otherwise false.