Interface ICalendarImporter
-
- All Superinterfaces:
Importer<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>>
- All Known Implementing Classes:
ICal4JImporter
public interface ICalendarImporter extends Importer<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>>
An importer of an input stream of iCalendar text into a stream of calendar events.- Author:
- mmoquillon
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ICalendarImporter
get()
Gets an instance of the implementation of theICalendarImporter
interface.void
imports(ImportDescriptor descriptor, Consumer<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>> consumer)
Imports the events serialized in the iCal format from the input stream provided by the descriptor and passes the import stream to the specified consumer.
-
-
-
Method Detail
-
get
static ICalendarImporter get()
Gets an instance of the implementation of theICalendarImporter
interface.- Returns:
- an
ICalendarImporter
instance.
-
imports
void imports(ImportDescriptor descriptor, Consumer<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>> consumer) throws ImportException
Imports the events serialized in the iCal format from the input stream provided by the descriptor and passes the import stream to the specified consumer.- Specified by:
imports
in interfaceImporter<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>>
- Parameters:
descriptor
- the import descriptor that describes how the import has to be done.consumer
- the consumer that takes the resource that was decoded. It ends the import process by, for example, saving it into Silverpeas.- Throws:
ImportException
-
-