Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有任何 ical4j 专家可以帮助我吗?我需要获取.ics文件的类别,getCategories()但无法识别,因为 jar 文件还没有该方法,但所有代码都在那里检索它我只需要将 getCategories() 方法添加到 .class在罐子里。我正在使用 ical4j 1.0.6。有没有人使用 ical4j 获得了 ics 文件的类别(我知道它有能力)?我已经尝试编辑 jar 文件。
.ics
getCategories()
您可以使用:
Categories cats = (Categories)event.getProperty(Property.CATEGORY)
实际上,由于根据 RFC5545,CATEGORY 属性可以是多值的,因此您可能应该调用 event.getProperties(Property.CATEGORY) 它将返回一个 PropertyList