Loading media/java/android/media/ExifInterface.java +5 −3 Original line number Diff line number Diff line Loading @@ -1554,14 +1554,16 @@ public class ExifInterface { * copying all the data from one file to another and deleting the old file and renaming the * other. It's best to use {@link #setAttribute(String,String)} to set all attributes to write * and make a single call rather than multiple calls for each attribute. * <p> * This method is only supported for JPEG files. * </p> */ public void saveAttributes() throws IOException { if (!mIsSupportedFile || mIsRaw) { throw new UnsupportedOperationException( "ExifInterface only supports saving attributes on JPEG formats."); throw new IOException("ExifInterface only supports saving attributes on JPEG formats."); } if (mIsInputStream || (mSeekableFileDescriptor == null && mFilename == null)) { throw new UnsupportedOperationException( throw new IOException( "ExifInterface does not support saving attributes for the current input."); } Loading Loading
media/java/android/media/ExifInterface.java +5 −3 Original line number Diff line number Diff line Loading @@ -1554,14 +1554,16 @@ public class ExifInterface { * copying all the data from one file to another and deleting the old file and renaming the * other. It's best to use {@link #setAttribute(String,String)} to set all attributes to write * and make a single call rather than multiple calls for each attribute. * <p> * This method is only supported for JPEG files. * </p> */ public void saveAttributes() throws IOException { if (!mIsSupportedFile || mIsRaw) { throw new UnsupportedOperationException( "ExifInterface only supports saving attributes on JPEG formats."); throw new IOException("ExifInterface only supports saving attributes on JPEG formats."); } if (mIsInputStream || (mSeekableFileDescriptor == null && mFilename == null)) { throw new UnsupportedOperationException( throw new IOException( "ExifInterface does not support saving attributes for the current input."); } Loading