Interface CalFormat


public interface CalFormat
CalEvent import/export format
  • Method Details

    • exportEvents

      String exportEvents(Collection<CalEvent> calDates) throws Exception
      Parameters:
      calDates - A list of DateEntrys
      Returns:
      the export string
      Throws:
      Exception
    • getCalendarFormatName

      String getCalendarFormatName()
      A representable name for the Parser
      Returns:
      the format's name
    • getContentType

      String getContentType()
      Returns:
      the content-type associated with this format
    • importEvents

      List<CalEvent> importEvents(InputStream is) throws Exception
      Must throw a exception if the given file is not parseable!
      Parameters:
      is - the InputStream
      Returns:
      all imported events
      Throws:
      Exception