1 package jalview.io.packed;
3 import jalview.io.FileParse;
6 * minimal implementation of the DataProvider interface.
7 * Allows a FileParse datasource to be specified as one of the DataProvider.JvDataType content types, with or without some other associated object as external reference.
9 public class SimpleDataProvider implements DataProvider
11 DataProvider.JvDataType jvtype;
18 * create a SimpleDataProvider
19 * @param type - contents of resource accessible via fp
20 * @param fp - datasource
21 * @param assoc - external object that fp's content should be associated with (may be null)
23 public SimpleDataProvider(DataProvider.JvDataType type, FileParse fp,
32 public FileParse getDataSource()
38 public Object getSequenceTarget()
44 public DataProvider.JvDataType getType()