File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/org/scijava/io Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,9 @@ default <D> IOPlugin<D> getSaver(D data, Location destination) {
116
116
* not supported.
117
117
* @throws IOException if something goes wrong loading the data.
118
118
*/
119
- Object open (Location source ) throws IOException ;
119
+ default Object open (Location source ) throws IOException {
120
+ throw new UnsupportedOperationException ();
121
+ }
120
122
121
123
/**
122
124
* Saves data to the given destination. The nature of the destination is left
@@ -144,7 +146,9 @@ default <D> IOPlugin<D> getSaver(D data, Location destination) {
144
146
* @param destination The destination location to which data should be saved.
145
147
* @throws IOException if something goes wrong saving the data.
146
148
*/
147
- void save (Object data , Location destination ) throws IOException ;
149
+ default void save (Object data , Location destination ) throws IOException {
150
+ throw new UnsupportedOperationException ();
151
+ }
148
152
149
153
// -- HandlerService methods --
150
154
You can’t perform that action at this time.
0 commit comments