/** * Reads the exif tags from a file, clearing this ExifInterface object's * existing exif tags. * * @param inFileName a string representing the filepath to jpeg file. * @param options bit flag which defines which type of tags to process, see {@link it.sephiroth.android.library.exif2.ExifInterface.Options} * @see #readExif(java.io.InputStream, int) * @throws java.io.IOException */ @SuppressWarnings( "unused" ) public void readExif( String inFileName, int options ) throws IOException { if( inFileName == null ) { throw new IllegalArgumentException( NULL_ARGUMENT_STRING ); } InputStream is = null; try { is = new BufferedInputStream( new FileInputStream( inFileName ) ); readExif( is, options ); } catch( IOException e ) { closeSilently( is ); throw e; } is.close(); }
/** * Reads the exif tags from a file, clearing this ExifInterface object's * existing exif tags. * * @param inFileName a string representing the filepath to jpeg file. * @param options bit flag which defines which type of tags to process, see {@link it.sephiroth.android.library.exif2.ExifInterface.Options} * @see #readExif(java.io.InputStream, int) * @throws java.io.IOException */ @SuppressWarnings( "unused" ) public void readExif( String inFileName, int options ) throws IOException { if( inFileName == null ) { throw new IllegalArgumentException( NULL_ARGUMENT_STRING ); } InputStream is = null; try { is = new BufferedInputStream( new FileInputStream( inFileName ) ); readExif( is, options ); } catch( IOException e ) { closeSilently( is ); throw e; } is.close(); }