/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts

« back to all changes in this revision

Viewing changes to src/org/waxworlds/edam/importcontacts/VCFImporter.java

  • Committer: edam
  • Date: 2010-07-04 15:14:46 UTC
  • Revision ID: edam@waxworlds.org-20100704151446-2yah1u00ml5m3wq9
- added facility to enter a filename (instead of a directory to scan) and just use that

Show diffs side-by-side

added added

removed removed

461
461
                                        !charset.equals( "UTF-8" ) && !charset.equals( "UTF-16" ) )
462
462
                                throw new ParseException( R.string.error_vcf_charset );
463
463
                        if( ( encoding = checkParam( params, "ENCODING" ) ) != null &&
464
 
                                        !encoding.equals( "QUOTED-PRINTABLE" ) &&
465
 
                                        !encoding.equals( "8BIT" ) ) //&& !encoding.equals( "BASE64" ) )
 
464
                                        !encoding.equals( "QUOTED-PRINTABLE" ) )
466
465
                                throw new ParseException( R.string.error_vcf_encoding );
467
466
 
468
467
                        // do decoding?
469
468
                        if( encoding != null && encoding.equals( "QUOTED-PRINTABLE" ) )
470
469
                                return unencodeQuotedPrintable( value, charset );
471
 
//                      if( encoding != null && encoding.equals( "BASE64" ) )
472
 
//                              return unencodeBase64( value, charset );
473
470
 
474
471
                        // nothing to do!
475
472
                        return value;