Exemple #1
0
 /**
  * Write VObject to writer.
  *
  * @param writer buffered writer
  */
 public void writeTo(ICSBufferedWriter writer) {
   writer.write("BEGIN:");
   writer.writeLine(type);
   if (properties != null) {
     for (VProperty property : properties) {
       writer.writeLine(property.toString());
     }
   }
   if (vObjects != null) {
     for (VObject object : vObjects) {
       object.writeTo(writer);
     }
   }
   writer.write("END:");
   writer.writeLine(type);
 }
Exemple #2
0
 public String toString() {
   ICSBufferedWriter writer = new ICSBufferedWriter();
   writeTo(writer);
   return writer.toString();
 }