Package net.fortuna.ical4j.data

Examples of net.fortuna.ical4j.data.CalendarBuilder.build()


  protected void onStringImport(final AjaxRequestTarget target, final String fileName, final String content)
  {

    try {
      final CalendarBuilder builder = new CalendarBuilder();
      final Calendar calendar = builder.build(new StringReader(content));
      onIcsImport(target, calendar);
    } catch (final Exception ex) {
      // TODO ju: handle exception
      log.fatal("unable to import dropped calendar", ex);
    }
View Full Code Here


    public static final Calendar asIcal4jCalendar(final String rawResponse) throws InfusionsoftResponseParsingException {
        final String responseString = (String)rawResponse;
        final StringReader reader = new StringReader(responseString);
        final CalendarBuilder builder = new CalendarBuilder();
        try {
            return builder.build(reader);
        } catch (IOException e) {
            // unreachable
            throw new InfusionsoftResponseParsingException("Unable to fetch calendar. ", e);
        } catch (ParserException e) {
            throw new InfusionsoftResponseParsingException("Unable to parse calendar. ", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.