Examples of ImppType


Examples of net.sourceforge.cardme.vcard.types.ImppType

    xGenerator.setCharset("UTF-8");
   
    vcard.addExtendedType(xGenerator);
    vcard.addExtendedType(new ExtendedType("X-LONG-STRING", "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"));
   
    vcard.addImpp(new ImppType("im:alice@example.com"));
    vcard.addImpp(new ImppType(new URI("im:alice2@example.com")));
   
    ImppType impp = new ImppType();
    impp.setUri(new URI("im:alice3@example.com"));
    impp.addParam(ImppParamType.HOME)
    .addParam(ImppParamType.PREF)
    .addExtendedParam(new ExtendedParamType("X-BLA", "BLE", VCardTypeName.IMPP));
    vcard.addImpp(impp);
   
    ((VCardErrorHandler)vcard).setThrowExceptions(false);
View Full Code Here

Examples of net.sourceforge.cardme.vcard.types.ImppType

   * @param vcard
   * @throws VCardParseException
   */
  private void parseImppType(String group, String value, List<ParameterType> paramTypeList, VCardImpl vcard) throws VCardParseException {
    try {
      ImppType imppType = new ImppType();
      parseParamTypes(imppType, paramTypeList, value, VCardTypeName.IMPP);
     
      if(EncodingType.EIGHT_BIT.equals(imppType.getEncodingType())) {
        imppType.setUri(new URI(value));
      }
      else {
        throw new VCardParseException("IMPP's encoding must be 8bit.");
      }
     
      if(group != null) {
        imppType.setGroup(group);
      }
     
      vcard.addImpp(imppType);
    }
    catch(Exception ex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.