1 7 package org.jical; 8 9 import java.util.Date ; 10 11 17 public class ICalUtil { 18 19 public static String makeVEventLines(String type, String text) 20 { 21 if (text == null) 22 return ""; 23 StringBuffer textLine = new StringBuffer (); 24 textLine.append(type).append(text).append("\n"); 25 26 30 31 if (textLine.length() <= 75) 32 return textLine.toString(); 33 34 StringBuffer newLines = new StringBuffer (); 35 while (textLine.length() > 75) 36 { 37 newLines.append(textLine.substring(0,75)).append("\n"); 38 String newTextLine = " "+textLine.substring(75); 40 textLine = new StringBuffer ().append(newTextLine); 41 } 42 43 return newLines.toString()+textLine; 44 } 45 46 49 public String getJiCaldisplayXML(ICalendar icalendar, Date dateFrom, Date dateTo, String timeRange) 50 { 51 return ""; 206 } 207 } 208 | Popular Tags |