How to manually parse iics file in java?

Hi, I am new to java. I want to manually analyze the calendar file (outlook calendar file). Using a third-party api, how to parse an ics file in java?

+3
source share
1 answer

Without using any third-party libraries, you will basically have to write your own iCalendar (see RFC 5545 ) parser that reproduces the work of third-party libraries. It will not be fun.

Admittedly, my own experience with iCal4j was not terribly enjoyable, but I would not write my own parser from scratch using java.util.Dateand java.util.Calendar. Perhaps you should write an iCalendar parser using Joda Time to represent various aspects ("date", "time", etc.), since that is a much more convenient API to work than the built-in ... but equally you can find that iCal4j is good enough for your purposes.

+4
source

Source: https://habr.com/ru/post/1757080/


All Articles