Examples of MailerType


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

   
    vcard.setSecurityClass(new ClassType("Public"));
    vcard.setProdId(new ProdIdType("31e78c0d-fb07-479d-b6af-95a9a3f2916f"));
    vcard.setSortString(new SortStringType("JOHN"));
   
    vcard.setMailer(new MailerType("Mozilla Thunderbird"));
    vcard.setTitle(new TitleType("Generic Accountant"));
    vcard.setRole(new RoleType("Counting Money"));
   
    OrgType organizations = new OrgType();
    organizations.setOrgName("IBM");
View Full Code Here

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

  }
 
  @Test
  public void testBuildMailerFeature() throws VCardBuildException {
    VCardImpl vcard = getSimpleVCard();
    vcard.setMailer(new MailerType("Mozilla Thunderbird"));
   
    VCardWriter vcardWriter = new VCardWriter();
    vcardWriter.setOutputVersion(VCardVersion.V3_0);
    vcardWriter.setCompatibilityMode(CompatibilityMode.RFC2426);
    vcardWriter.setFoldingScheme(FoldingScheme.MIME_DIR);
View Full Code Here

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

   * @param vcard
   * @throws VCardParseException
   */
  private void parseMailerType(String group, String value, List<ParameterType> paramTypeList, VCardImpl vcard) throws VCardParseException {
    try {
      MailerType mailerType = new MailerType();
      parseParamTypes(mailerType, paramTypeList, value, VCardTypeName.MAILER);
     
      if(mailerType.isQuotedPrintable()) {
        value = decodeQuotedPrintableValue(mailerType, value);
      }
     
      if(group != null) {
        mailerType.setGroup(group);
      }
     
      mailerType.setMailer(VCardUtils.unescapeString(value));
     
      vcard.setMailer(mailerType);
    }
    catch(Exception ex) {
      throw new VCardParseException("MailerType ("+VCardTypeName.MAILER.getType()+") ["+ex.getClass().getName()+"] "+ex.getMessage(), 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.