Improve doc for saveAttributes

Bug: 198143065
Test: N/A
Change-Id: I7e85dd33ecaca14e6ca279dacbaf6e8d419ea01e
This commit is contained in:
Jin Seok Park
2021-08-30 23:48:44 +09:00
parent 7362d3a519
commit 5f3129e4d0

View File

@@ -577,7 +577,7 @@ public class ExifInterface {
// 3.1. PNG file signature
private static final byte[] PNG_SIGNATURE = new byte[] {(byte) 0x89, (byte) 0x50, (byte) 0x4e,
(byte) 0x47, (byte) 0x0d, (byte) 0x0a, (byte) 0x1a, (byte) 0x0a};
// See PNG (Portable Network Graphics) Specification, Version 1.2,
// See "Extensions to the PNG 1.2 Specification, Version 1.5.0",
// 3.7. eXIf Exchangeable Image File (Exif) Profile
private static final byte[] PNG_CHUNK_TYPE_EXIF = new byte[]{(byte) 0x65, (byte) 0x58,
(byte) 0x49, (byte) 0x66};
@@ -2085,7 +2085,9 @@ public class ExifInterface {
* <p>
* For WebP format, the Exif data will be stored as an Extended File Format, and it may not be
* supported for older readers.
* </p>
* <p>
* For PNG format, the Exif data will be stored as an "eXIf" chunk as per
* "Extensions to the PNG 1.2 Specification, Version 1.5.0".
*/
public void saveAttributes() throws IOException {
if (!isSupportedFormatForSavingAttributes()) {