/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/am/ed/importcontacts/VcardImporter.java

  • Committer: Tim Marston
  • Date: 2013-10-20 17:52:21 UTC
  • Revision ID: tim@ed.am-20131020175221-7f9i6dhl55xz39ui
eclipse file changes (who knows!)

Show diffs side-by-side

added added

removed removed

149
149
                                else if( line.matches( "(?i)END[ \t]*:[ \t]*VCARD.*" ) )
150
150
                                        in_vcard = false;
151
151
                        }
152
 
                        reader.close();
153
152
 
154
153
                }
155
154
                catch( FileNotFoundException e ) {
177
176
                        FileInputStream istream = new FileInputStream( file );
178
177
                        byte[] content = new byte[ (int)file.length() ];
179
178
                        istream.read( content );
180
 
                        istream.close();
 
179
                        istream = null;
181
180
 
182
181
                        // import
183
182
                        importVCardFileContent( content, file.getName() );