|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AutoDetectingImporter
This interface should be implemented by an import plugin that supports auto-detection of the file format.
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.basedb.core.plugin.Plugin |
---|
Plugin.MainType |
Method Summary | |
---|---|
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. |
Methods inherited from interface net.sf.basedb.core.plugin.Plugin |
---|
done, getAbout, getMainType, getPermissions, init, requiresConfiguration, run, supportsConfigurations |
Method Detail |
---|
boolean isImportable(InputStream in) throws BaseException
InputStream
can be imported by this
plugin.
in
- The input stream to check
BaseException
- If something goes wrongvoid doImport(InputStream in, ProgressReporter progress) throws BaseException
InputStream
.
in
- The input stream to read fromprogress
- Progress reporter used by the caller to keep track of the progress.
Null is allowed
BaseException
- If something goes wrong
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |