3030
3131package org .scijava .table .io ;
3232
33+ import java .io .IOException ;
34+
3335import org .scijava .io .IOPlugin ;
3436import org .scijava .io .location .Location ;
3537import org .scijava .table .Table ;
3638
37- import java .io .IOException ;
38-
3939/**
4040 * Abstract plugin class for saving and loading tables
4141 *
4242 * @author Deborah Schmidt
4343 */
44+ @ SuppressWarnings ("rawtypes" )
4445public interface TableIOPlugin extends IOPlugin <Table > {
4546
4647 @ Override
4748 default Table <?, ?> open (Location source ) throws IOException {
4849 return open (source , new TableIOOptions ());
4950 }
5051
51- /** Opens data from the given source. */
52- default Table <?, ?> open (final Location source , final TableIOOptions options ) throws IOException {
52+ /**
53+ * Opens data from the given source.
54+ *
55+ * @param source The data source to open as a table.
56+ * @param options The options to use when opening the data.
57+ * @throws IOException If something goes wrong opening the data source.
58+ */
59+ default Table <?, ?> open (final Location source , final TableIOOptions options )
60+ throws IOException
61+ {
5362 throw new UnsupportedOperationException ();
5463 }
5564
@@ -58,8 +67,17 @@ default void save(Table data, Location destination) throws IOException {
5867 save (data , destination , new TableIOOptions ());
5968 }
6069
61- /** Saves the given data to the specified destination. */
62- default void save (final Table <?, ?> data , final Location destination , final TableIOOptions options ) throws IOException {
70+ /**
71+ * Saves the given data to the specified destination.
72+ *
73+ * @param data The table to save.
74+ * @param destination The destination where the table should be saved.
75+ * @param options The options to use when saving the data.
76+ * @throws IOException If something goes wrong opening the data source.
77+ */
78+ default void save (final Table <?, ?> data , final Location destination ,
79+ final TableIOOptions options ) throws IOException
80+ {
6381 throw new UnsupportedOperationException ();
6482 }
6583
0 commit comments