2010-09-22 19:04:10 +02:00
|
|
|
package com.google.refine.importers;
|
2010-08-06 07:04:25 +02:00
|
|
|
|
|
|
|
import java.io.Reader;
|
|
|
|
import java.util.Properties;
|
|
|
|
|
2010-09-22 19:04:10 +02:00
|
|
|
import com.google.refine.ProjectMetadata;
|
|
|
|
import com.google.refine.model.Project;
|
2010-08-06 07:04:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for importers which take a Reader as input.
|
|
|
|
*/
|
|
|
|
public interface ReaderImporter extends Importer {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read data from a input reader into project.
|
|
|
|
*
|
|
|
|
* @param reader
|
|
|
|
* reader to import data from. It is assumed to be positioned at
|
|
|
|
* the correct point and ready to go.
|
|
|
|
* @param project
|
|
|
|
* project which will contain data
|
2010-09-17 03:00:23 +02:00
|
|
|
* @param metadata
|
|
|
|
* metadata of new project
|
2010-08-06 07:04:25 +02:00
|
|
|
* @param options
|
|
|
|
* set of properties with import options
|
|
|
|
* @throws ImportException
|
|
|
|
*/
|
2010-09-17 03:00:23 +02:00
|
|
|
public void read(Reader reader, Project project, ProjectMetadata metadata, Properties options)
|
2010-08-06 07:04:25 +02:00
|
|
|
throws ImportException;
|
|
|
|
}
|