Interface IvCalendar


public interface IvCalendar

The class implemting this interface will be used by the Caltella Client. It is designed as a layer of abstraction for access to any kind of Calendar file, to import and export Events.

See Also:
Caltella.org

Method Summary
 void constructCalendar(ArrayList events, File path)
          Takes an ArrayList of Strings representing those events and exports (constructs) a file to be stored at the given path.
 String constructEvent(Date start, Date end, String summary, String[] Attendee)
           
 ArrayList extractCalendar(File path)
          Takes a file and imports (extracts) all events and return a ArrayList of Strings representing those events
 String extractEvent(String vEvent)
           
 

Method Detail

extractCalendar

public ArrayList extractCalendar(File path)
Takes a file and imports (extracts) all events and return a ArrayList of Strings representing those events

Parameters:
path - Defines where the file is
Returns:
ArrayList of Strings representing the Events in the form of: startDate:::endDate:::summary:::attendee1,attendee2
Exampple: Mon Feb 09 00:11:30 CET 2004:::Mon Feb 09 00:11:30 CET 2004:::Badminton spielen:::Alex,Karo,Peter
See Also:
File, ArrayList, extractEvent(java.lang.String)

constructCalendar

public void constructCalendar(ArrayList events,
                              File path)
Takes an ArrayList of Strings representing those events and exports (constructs) a file to be stored at the given path.

Parameters:
path - Defines where the file will be stored
See Also:
File, ArrayList, constructEvent(java.util.Date, java.util.Date, java.lang.String, java.lang.String[])

extractEvent

public String extractEvent(String vEvent)

constructEvent

public String constructEvent(Date start,
                             Date end,
                             String summary,
                             String[] Attendee)