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

ConstructorDescription
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

MethodDescription
equals(Object arg0)
getClass()
getCount()Gets the number of Vevent components.
getCurrent()Current read event.
getMethod()Gets the iCalendar object method type associated with the calendar object.
getVersion()Gets the Version of calendar.
hashCode()
isMultiEvents()Gets whether calendar contains multi events.
loadAsMultiple()Loads a list of events from a calendar with multiple events.
nextEvent()Reads next Event from source and save it to the Current.
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

CalendarReader(String path)

public CalendarReader(String path)

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

Parameters:

ParameterTypeDescription
pathjava.lang.StringPath 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:

ParameterTypeDescription
pathjava.lang.StringPath to source file.
optionsAppointmentLoadOptionsAdditional LoadOptions.

CalendarReader(InputStream stream)

public CalendarReader(InputStream stream)

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

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamSource 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:

ParameterTypeDescription
streamjava.io.InputStreamSource stream.
optionsAppointmentLoadOptionsAdditional LoadOptions.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public final int getCount()

Gets the number of Vevent components.

Returns: int

getCurrent()

public final Appointment getCurrent()

Current read event.

Returns: Appointment

getMethod()

public final int getMethod()

Gets the iCalendar object method type associated with the calendar object.

Returns: int

getVersion()

public final String getVersion()

Gets the Version of calendar.

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

isMultiEvents()

public final boolean isMultiEvents()

Gets whether calendar contains multi events.

Returns: boolean

loadAsMultiple()

public final List<Appointment> loadAsMultiple()

Loads a list of events from a calendar with multiple events.

Returns: java.util.List<com.aspose.email.Appointment> -

nextEvent()

public final boolean nextEvent()

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

Returns: boolean - True if success otherwise false.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int