Example #1
0
 public void build() {
   try {
     outputStream.write(cf.create());
   } catch (IOException e) {
     throw new RuntimeException("Error writing to stream", e);
   }
 }
Example #2
0
 public void write(
     int id, DateTime start, String summary, DateTime end, String location, String description) {
   cf.addEvent(new Event(start, end, summary, location, description));
 }
Example #3
0
 public void setTitle(String title) {
   cf = ICalendarFactory.newNamedInstance(title);
 }