Package net.fortuna.ical4j.data

Examples of net.fortuna.ical4j.data.CalendarOutputter.output()


    File fKalendarFile = getCalendarFile(calType, calId);
    OutputStream os = null;
    try {
      os = new BufferedOutputStream(new FileOutputStream(fKalendarFile, false));
      CalendarOutputter calOut = new CalendarOutputter(false);
      calOut.output(calendar, os);
    } catch (Exception e) {
      return false;
    } finally {
      FileUtils.closeSafely(os);
    }
View Full Code Here


      response.setBufferSize(outputBufferSize);
      ostream = response.getOutputStream();

      // output the calendar to the stream
      CalendarOutputter calOut = new CalendarOutputter(false);
      calOut.output(icalDoc, ostream);
    } catch (ValidationException e) {
      // throw olat exception for nice logging
      Tracing.logWarn("Validation Error when generate iCal stream for path::" + request.getPathInfo(), e, this.getClass());
      DispatcherAction.sendNotFound("none", response);
    } catch (IOException e) {
View Full Code Here

   
   
    FileOutputStream fout = new FileOutputStream(filerPath);

    CalendarOutputter outputter = new CalendarOutputter();
    outputter.output(icsCalendar, fout);
   
   
  }
  //------------------------------------------------------------------------------------------
 
View Full Code Here

  //------------------------------------------------------------------------------------------
  public byte[] getIcalAsByteArray() throws Exception{
   
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    CalendarOutputter outputter = new CalendarOutputter();
    outputter.output(icsCalendar, bout);
    return bout.toByteArray();

  }
  //------------------------------------------------------------------------------------------
 
View Full Code Here

        fileName = parent + fileName;
        try {
            fout = new FileOutputStream(fileName);
            outputter = new CalendarOutputter();
            //System.out.println(t.toICal().toString());
            outputter.output(t.toICal(), fout);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (ValidationException e) {
            e.printStackTrace();
        } finally {
View Full Code Here

            vevents.add(vevent);
        }
        icalendar.getComponents().addAll(vevents);
        CalendarOutputter calout = new CalendarOutputter();
        if(!vevents.isEmpty()) // no calendar output if there is no component
            calout.output(icalendar,out);
    }
   
    /**
     * Generates a list of EventsVO out of an iCalendar file.
     * @param ical the InputStream of the iCalendar file
View Full Code Here

   

    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    CalendarOutputter outputter = new CalendarOutputter();
    try {
      outputter.output(icsCalendar, bout);
      iCalMimeBody = bout.toByteArray();
     
      sendIcalMessage();
    } catch (IOException e) {
      // TODO Auto-generated catch block
View Full Code Here

      filerPath = filerPath + ".ics";

    FileOutputStream fout = new FileOutputStream(filerPath);

    CalendarOutputter outputter = new CalendarOutputter();
    outputter.output(icsCalendar, fout);

  }

  // ------------------------------------------------------------------------------------------
View Full Code Here

  // ------------------------------------------------------------------------------------------
  public byte[] getIcalAsByteArray() throws Exception {

    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    CalendarOutputter outputter = new CalendarOutputter();
    outputter.output(icsCalendar, bout);
    return bout.toByteArray();

  }

  // ------------------------------------------------------------------------------------------
View Full Code Here

   

    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    CalendarOutputter outputter = new CalendarOutputter();
    try {
      outputter.output(icsCalendar, bout);
      iCalMimeBody = bout.toByteArray();
     
      sendIcalMessage();
    } catch (IOException e) {
      // TODO Auto-generated catch block
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.