Skip to content

Commit acbb65d

Browse files
committed
AbstractIOPlugin: add open(String destination) method
1 parent 0bcbce3 commit acbb65d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/org/scijava/io/AbstractIOPlugin.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,14 @@ public void save(final D data, final String destination) throws IOException {
7575
throw new IOException(e);
7676
}
7777
}
78+
79+
@Override
80+
public D open(final String destination) throws IOException {
81+
try {
82+
return open(locationService.resolve(destination));
83+
} catch (URISyntaxException e) {
84+
throw new IOException(e);
85+
}
86+
}
87+
7888
}

0 commit comments

Comments
 (0)