sw.write('\n');  w.write(sw.toString());
String rawval = sw.toString(); int len = rawval.length(); for (int i = 0; i < len; i += CHARS_PER_FOLDED_LINE) { int upto = Math.min(i + CHARS_PER_FOLDED_LINE, len); String segment = rawval.substring(i, upto); if (i > 0) { w.write(LINE_BREAK); w.write(' '); } w.write(segment); } w.write(LINE_BREAK);
        public void toICalendar(Writer w) throws IOException {            StringWriter sw = new StringWriter();                        sw.write(escape(mName));            for (ZParameter param: mParameters)                param.toICalendar(sw);            sw.write(':');            if (mName.equals(ICalTok.RRULE.toString()) ||                mName.equals(ICalTok.EXRULE.toString()))            	sw.write(mValue);            else	            sw.write(escape(mValue));            sw.write('\n');                        w.write(sw.toString());            //            System.out.println("PARAMOUT: "+sw.toString());        }