Any ical4j experts out there who can help me? I need to get the categories for an .ics
file using getCategories()
but it isn't recognized because the jar files do not have that method yet, but all the code is there to retrieve it I just need to add the getCategories() method to a .class in the jar. I'm using ical4j 1.0.6. Anybody out there who has gotten the categories of an ics file using ical4j ( I know it's capable)? I've already tried to edit the jar files.
Asked
Active
Viewed 147 times
1

Taylor Courtney
- 813
- 1
- 6
- 23
1 Answers
0
You can just use:
Categories cats = (Categories)event.getProperty(Property.CATEGORY)
And actually, since, per RFC5545, the CATEGORY property can be multivalued, you should probably call event.getProperties(Property.CATEGORY) which will return a PropertyList

Arnaud Quillaud
- 4,420
- 1
- 12
- 8
-
And this will give me the categories of the VEvent? – Taylor Courtney Apr 20 '15 at 18:18