/** * Builds an iCalendar model from the specified input stream. * @param in an input stream to read calendar data from * @return a calendar parsed from the specified input stream * @throws java.io.IOException where an error occurs reading data from the specified stream * @throws net.fortuna.ical4j.data.ParserException where an error occurs parsing data from the stream */ public Calendar build(final InputStream in) throws IOException, ParserException { return build(new InputStreamReader(in, DEFAULT_CHARSET)); }
JsonCalendarBuilder bldr = new JsonCalendarBuilder(ic); cal = bldr.build(rdr); } else { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl(), ic);