public interface AutoDetectingImporter extends Plugin
The plugin will be loaded and initialised normally, but
instead of the Plugin.run(Request, Response, ProgressReporter)
method
the methods in this interface are used. There are some additional
requirements for an auto-detecting plugin:
Note that it is only if the user chooses to use the auto-detect
function in the (web) client application that the methods in this
interface are used. If the user manually selects to use a specific
plugin the normal Plugin.run(Request, Response, ProgressReporter)
method is used. In other words, the plugin must support both methods of importing.
Plugin.MainType
Modifier and Type | Method and Description |
---|---|
void |
doImport(InputStream in,
ProgressReporter progress)
Import the data from the given
InputStream . |
boolean |
isImportable(InputStream in)
Check if the given
InputStream can be imported by this
plugin. |
boolean isImportable(InputStream in) throws BaseException
InputStream
can be imported by this
plugin.in
- The input stream to checkBaseException
- If something goes wrongvoid doImport(InputStream in, ProgressReporter progress) throws BaseException
InputStream
.in
- The input stream to read fromBaseException
- If something goes wrong