Changeset 8243 in josm for trunk/src/com/drew/imaging/jpeg/JpegSegmentMetadataReader.java
- Timestamp:
- 2015-04-21T00:42:50+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/imaging/jpeg/JpegSegmentMetadataReader.java
r8132 r8243 16 16 17 17 /** 18 * Gets a value indicating whether the supplied byte data can be processed by this reader. This is not a guarantee 19 * that no errors will occur, but rather a best-effort indication of whether the parse is likely to succeed. 20 * Implementations are expected to check things such as the opening bytes, data length, etc. 21 */ 22 public boolean canProcess(@NotNull final byte[] segmentBytes, @NotNull final JpegSegmentType segmentType); 23 24 /** 25 * Extracts metadata from a JPEG segment's byte array and merges it into the specified {@link Metadata} object. 18 * Extracts metadata from all instances of a particular JPEG segment type. 26 19 * 27 * @param segmentBytes The byte array from which the metadata should be extracted. 20 * @param segments A sequence of byte arrays from which the metadata should be extracted. These are in the order 21 * encountered in the original file. 28 22 * @param metadata The {@link Metadata} object into which extracted values should be merged. 29 23 * @param segmentType The {@link JpegSegmentType} being read. 30 24 */ 31 public void extract(@NotNull final byte[] segmentBytes, @NotNull final Metadata metadata, @NotNull final JpegSegmentType segmentType);25 public void readJpegSegments(@NotNull final Iterable<byte[]> segments, @NotNull final Metadata metadata, @NotNull final JpegSegmentType segmentType); 32 26 }
Note:
See TracChangeset
for help on using the changeset viewer.