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.
目前我正在使用 2 个工具从 URL 开始处理 iCal 日历。首先,我使用 Google Chrome 从日历 URL 创建一个 .ics 文件(例如,我可以从 AirBnb 获取 URL),然后我使用 ical4j 处理创建的文件。有没有办法在Java程序中直接使用这个URL?
大概是这样的:
InputStream is = new URL("http://airbnb.com/ical/").openStream(); try { Calendar cal = new CalendarBuilder().build(is); } finally { is.close(); }