Пример #1
0
 @Override
 public void addVObject(VObject vObject) {
   super.addVObject(vObject);
   if (firstVevent == null && ("VEVENT".equals(vObject.type) || "VTODO".equals(vObject.type))) {
     firstVevent = vObject;
   }
   if ("VTIMEZONE".equals(vObject.type)) {
     vTimezone = vObject;
   }
 }
Пример #2
0
 protected void handleLine(String line, BufferedReader reader) throws IOException {
   // skip empty lines
   if (line.length() > 0) {
     VProperty property = new VProperty(line);
     // inner object
     if ("BEGIN".equals(property.getKey())) {
       addVObject(new VObject(property, reader));
     } else if (property.getKey() != null) {
       addProperty(property);
     }
   }
 }