Skip to content

Commit

Permalink
Merge pull request #17 from idrsolutions/task/Add_read_and_write_rast…
Browse files Browse the repository at this point in the history
…er_methods

Task/add read and write raster methods
  • Loading branch information
Amy1612 authored Jan 8, 2024
2 parents 0894f9e + 9f6306d commit 14246bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

<properties>
<finalName>${project.artifactId}</finalName>
<depVersion>2023.08</depVersion>
<depVersion>2023.12</depVersion>
<depArtifact>jdeli</depArtifact>

<!--An identifier used to change the artifactID for the daily, trial, and trial daily builds-->
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/idrsolutions/JDeliImageReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ public BufferedImage read(final int imageIndex, final ImageReadParam param) thro
return image;
}

@Override
public boolean canReadRaster() {
return true;
}

private void getByteArray() {
if (bytes == null) {
try {
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/idrsolutions/JDeliImageWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public void setOutput(final Object output) {
}
}

@Override
public boolean canWriteRasters() {
return true;
}

@Override
public IIOMetadata getDefaultStreamMetadata(final ImageWriteParam param) {
throw new UnsupportedOperationException("Not supported yet.");
Expand Down

0 comments on commit 14246bd

Please sign in to comment.