Class ICalExporter

    • Method Detail

      • getICalCodec

        protected ICalCodec getICalCodec()
        Gets the iCalCodec used to encode calendar events in iCal formatted text.
        Returns:
        an iCal codec.
      • exports

        public void exports​(ExportDescriptor descriptor,
                            Supplier<ExportableCalendar> supplier)
                     throws ExportException
        Exports the specified events with a writer in the iCal format. If no events are specified, then a NoDataToExportException is thrown as no export can be done. The writer with which the events have to be exported is provided by the specified export descriptor.
        Specified by:
        exports in interface Exporter<ExportableCalendar>
        Parameters:
        supplier - a supplier of the calendar to export.
        descriptor - the export descriptor in which is passed the writer with which the events should be exported.
        Throws:
        ExportException - if the export fails (an IO issue occurs with the writer, no events to export, ...).