Class ICal4JICalCodec

  • All Implemented Interfaces:
    ICalCodec

    @Singleton
    public class ICal4JICalCodec
    extends Object
    implements ICalCodec
    An iCal encoder/decoder by using the iCal4J library.
    • Method Detail

      • encode

        public String encode​(List<CalendarEvent> events)
        Description copied from interface: ICalCodec
        Encodes the specified events in a calendar into the iCal format. If the encoding process failed for an unexpected reason, then an EncodingException is thrown.
        Specified by:
        encode in interface ICalCodec
        Parameters:
        events - the calendar events to encode in the iCal format. If the list of events is null or empty, an IllegalArgumentException is thrown.
        Returns:
        the textual representation in iCal format of the events..