how to read recurring events from outlook pst file using libpst

98 Views Asked by At

I'm using the java libpst 0.9.3 (https://mvnrepository.com/artifact/com.pff/java-libpst/0.9.3) to read calendar events from a local outlook pst file. I struggle to get the proper information for recurring appopintments incl. exceptions.

When scanning the appointments, I use

myAppointment.getRecurrenceType()!= 0

to check whether this is an recurring event and then try to use the class

PSTAppointmentRecurrence(byte[] recurrencePattern,
                        PSTAppointment appt,
                        PSTTimeZone tz)

to create a recurrend appointment object but I fail to create an instance of this class.

I tried this: myRecurrendAppointment= new PSTAppointmentRecurrence(myAppointment.getRecurrenceStructure(), myAppointment, ???)

??? tz= where do I get the system timezone as an instance of PSTTimeZone?

thanks in advance Chris

0

There are 0 best solutions below