Changeset 13061 in josm for trunk/src/com/drew/metadata/jpeg/JpegCommentReader.java
- Timestamp:
- 2017-10-30T22:46:09+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/jpeg/JpegCommentReader.java
r10862 r13061 1 1 /* 2 * Copyright 2002-201 6Drew Noakes2 * Copyright 2002-2017 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 25 25 import com.drew.lang.annotations.NotNull; 26 26 import com.drew.metadata.Metadata; 27 import com.drew.metadata.StringValue; 27 28 28 29 import java.util.Collections; … … 49 50 50 51 // The entire contents of the directory are the comment 51 directory.setString(JpegCommentDirectory.TAG_COMMENT, new String(segmentBytes)); 52 directory.setStringValue(JpegCommentDirectory.TAG_COMMENT, new StringValue(segmentBytes, null)); 52 53 } 53 54 }
Note:
See TracChangeset
for help on using the changeset viewer.
