public void writeExif(String jpegFileName,String exifOutFileName) throws FileNotFoundException, IOException {
  if (jpegFileName == null || exifOutFileName == null) {
    throw new IllegalArgumentException(NULL_ARGUMENT_STRING);
  }
  InputStream is=null;
  try {
    is=new FileInputStream(jpegFileName);
    writeExif(is,exifOutFileName);
  }
 catch (  IOException e) {
    closeSilently(is);
    throw e;
  }
  is.close();
}

public void writeExif ( String jpegFileName , String exifOutFileName ) throws FileNotFoundException , IOException { if ( jpegFileName == null || exifOutFileName == null ) { throw new IllegalArgumentException ( NULL_ARGUMENT_STRING ) ; } InputStream is = null ; try { is = new FileInputStream ( jpegFileName ) ; writeExif ( is , exifOutFileName ) ; } catch ( IOException e ) { closeSilently ( is ) ; throw e ; } is . close ( ) ; }
writes the tags from this exifinterface object into a jpeg file , removing prior exif tags .
