com.silverpeas.export.ical.ical4j
Class ICal4JICalCodec

java.lang.Object
  extended by com.silverpeas.export.ical.ical4j.ICal4JICalCodec
All Implemented Interfaces:
ICalCodec

@Named(value="iCalCodec")
public class ICal4JICalCodec
extends Object
implements ICalCodec

An iCal encoder/decoder by using the iCal4J library.


Constructor Summary
ICal4JICalCodec()
           
 
Method Summary
 String encode(List<CalendarEvent> events)
          Encodes the specified events in a calendar into the iCal format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICal4JICalCodec

public ICal4JICalCodec()
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..


Copyright © 2016 Silverpeas. All Rights Reserved.