How to use iCal calendar in Java program from calendar url?

I am currently using 2 tools to start processing an iCal calendar from a URL. First, using Google Chrome, I create a .ics file from the calendar URL (for example, I can get the URL from AirBnb), and then I use ical4j to process the created file. Can I use this URL directly in a Java program?

+4
source share
1 answer

Maybe something like:

InputStream is = new URL("http://airbnb.com/ical/").openStream();
try {
   Calendar cal = new CalendarBuilder().build(is);
} finally {
  is.close();
}
+1
source

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


All Articles