public void writeExif(byte[] jpeg,String exifOutFileName) throws FileNotFoundException, IOException {
  if (jpeg == null || exifOutFileName == null) {
    throw new IllegalArgumentException(NULL_ARGUMENT_STRING);
  }
  OutputStream s=null;
  try {
    s=getExifWriterStream(exifOutFileName);
    s.write(jpeg,0,jpeg.length);
    s.flush();
  }
 catch (  IOException e) {
    closeSilently(s);
    throw e;
  }
  s.close();
}

public void writeExif ( byte [ ] jpeg , String exifOutFileName ) throws FileNotFoundException , IOException { if ( jpeg == null || exifOutFileName == null ) { throw new IllegalArgumentException ( NULL_ARGUMENT_STRING ) ; } OutputStream s = null ; try { s = getExifWriterStream ( exifOutFileName ) ; s . write ( jpeg , 0 , jpeg . length ) ; s . flush ( ) ; } catch ( IOException e ) { closeSilently ( s ) ; throw e ; } s . close ( ) ; }
writes the tags from this exifinterface object into a jpeg image , removing prior exif tags .
