Skip to content

Commit

Permalink
Merge branch 'pr-12'
Browse files Browse the repository at this point in the history
This closes #12
  • Loading branch information
kinow committed Oct 16, 2019
2 parents b9683f8 + c63f9fe commit b8b7a80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ The <action> type attribute can be add,update,fix,remove.
</properties>
<body>
<release version="1.0-alpha2" date="2019-??-??" description="Second 1.0 alpha release">
<action issue="IMAGING-165" dev="kinow" type="add" due-to="Michael Groß">
Add the fields from TiffReader.Collector to TiffContents
</action>
<action issue="IMAGING-230" dev="kinow" type="fix">
Properly close resources with try-with-resources in T4AndT6Compression
</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
public class TiffContents {
public final TiffHeader header;
public final List<TiffDirectory> directories;
public final List<TiffField> tiffFields;

public TiffContents(final TiffHeader tiffHeader, final List<TiffDirectory> directories) {
public TiffContents(final TiffHeader tiffHeader, final List<TiffDirectory> directories, final List<TiffField> tiffFields) {
this.header = tiffHeader;
this.directories = Collections.unmodifiableList(directories);
this.tiffFields = Collections.unmodifiableList(tiffFields);
}

public List<TiffElement> getElements() throws ImageReadException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public boolean readOffsetDirectories() {
}

public TiffContents getContents() {
return new TiffContents(tiffHeader, directories);
return new TiffContents(tiffHeader, directories, fields);
}
}

Expand Down

0 comments on commit b8b7a80

Please sign in to comment.