protectedbooleanreadBeginVCard(boolean allowGarbage) throws IOException, VCardException {// TODO: use consructPropertyLine().String line;do {while (true) {line = getLine();if (line == null) {returnfalse;} elseif (line.trim().length() > 0) {break;}}final String[] strArray = line.split(":", 2);finalint length = strArray.length;// Although vCard 2.1/3.0 specification does not allow lower cases,// we found vCard file emitted by some external vCard expoter have such// invalid Strings.// e.g. BEGIN:vCardif (length == 2 && strArray[0].trim().equalsIgnoreCase("BEGIN")&& strArray[1].trim().equalsIgnoreCase("VCARD")) { //判断是否是开头?returntrue;} elseif (!allowGarbage) {thrownew VCardException("Expected String \"BEGIN:VCARD\" did not come "+ "(Instead, \"" + line + "\" came)");}} while (allowGarbage);thrownew VCardException("Reached where must not be reached.");}
Explore how Matterverse is redefining the metaverse experience, creating immersive and meaningful virtual environments that foster genuine connections and economic opportunities. ...
[详细]