/** * Reads the exif tags from an InputStream, clearing this ExifInterface * object's existing exif tags. * <pre> * ExifInterface exif = new ExifInterface(); * exif.readExif( stream, Options.OPTION_IFD_0 | Options.OPTION_IFD_1 | Options.OPTION_IFD_EXIF ); * ... * // to request all the options use the OPTION_ALL bit mask * exif.readExif( stream, Options.OPTION_ALL ); * </pre> * * @param inStream an InputStream containing a jpeg compressed image. * @param options bit flag which defines which type of tags to process, see {@link it.sephiroth.android.library.exif2.ExifInterface.Options} * @throws java.io.IOException */ @SuppressWarnings( "unused" ) public void readExif( InputStream inStream, int options ) throws IOException { if( inStream == null ) { throw new IllegalArgumentException( NULL_ARGUMENT_STRING ); } ExifData d; try { d = new ExifReader( this ).read( inStream, options ); } catch( ExifInvalidFormatException e ) { throw new IOException( "Invalid exif format : " + e ); } mData = d; }
/** * Reads the exif tags from an InputStream, clearing this ExifInterface * object's existing exif tags. * <pre> * ExifInterface exif = new ExifInterface(); * exif.readExif( stream, Options.OPTION_IFD_0 | Options.OPTION_IFD_1 | Options.OPTION_IFD_EXIF ); * ... * // to request all the options use the OPTION_ALL bit mask * exif.readExif( stream, Options.OPTION_ALL ); * </pre> * * @param inStream an InputStream containing a jpeg compressed image. * @param options bit flag which defines which type of tags to process, see {@link it.sephiroth.android.library.exif2.ExifInterface.Options} * @throws java.io.IOException */ @SuppressWarnings( "unused" ) public void readExif( InputStream inStream, int options ) throws IOException { if( inStream == null ) { throw new IllegalArgumentException( NULL_ARGUMENT_STRING ); } ExifData d; try { d = new ExifReader( this ).read( inStream, options ); } catch( ExifInvalidFormatException e ) { throw new IOException( "Invalid exif format : " + e ); } mData = d; }