/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/importcontacts/VCFImporter.java

  • Committer: edam
  • Date: 2009-10-03 16:58:29 UTC
  • Revision ID: edam@waxworlds.org-20091003165829-vxhwdodf3400ugs3
Tags: 0.9
- converted project to use Android 1.5 SDK
- cleaned-up some whitespace/newlines in source

Show diffs side-by-side

added added

removed removed

21
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 */
23
23
 
24
 
package org.waxworlds.edam.importcontacts;
 
24
package org.waxworlds.importcontacts;
25
25
 
26
26
import java.io.BufferedReader;
27
27
import java.io.File;
38
38
import java.util.regex.Matcher;
39
39
import java.util.regex.Pattern;
40
40
 
 
41
import org.waxworlds.importcontacts.Importer.AbortImportException;
 
42
 
41
43
import android.content.SharedPreferences;
42
44
import android.provider.Contacts;
43
45
import android.provider.Contacts.PhonesColumns;
244
246
                private Vector< String > _lines = null;
245
247
                private int _nameLevel = NAMELEVEL_NONE;
246
248
 
247
 
                @SuppressWarnings("serial")
248
249
                protected class ParseException extends Exception
249
250
                {
250
 
                        @SuppressWarnings("unused")
251
251
                        public ParseException( String error )
252
252
                        {
253
253
                                super( error );
259
259
                        }
260
260
                }
261
261
 
262
 
                @SuppressWarnings("serial")
263
262
                protected class SkipContactException extends Exception { }
264
263
 
265
264
                public void parseLine( String line )