It seems that the solution is rather simple, it is just not detailed in the examples of iCal4j, where I was looking for help. (Sorry, I am a novice programmer). But after looking into the API reference of iCal4j, I found the following:
If you parse an ics file to a Calendar
object, it will have only a few Properties
, like METHOD
, PRODID
and VERSION
in our case. But it might (and most probably will) have some Components too, like VEvent
, VTodo
, etc, which is the actual content of the ics file. You can get the Components' list with
ComponentList cl = cal.getComponents();
For us, parsing, modifying and sending them will be much easier than creating them from scratch.