FidoJavaWrapper implementation tips

Skip to end of metadata
Go to start of metadata
By Martin Jensby, Danish Data Archives

The most interesting part of the wrapper is the class, this one is actually the only class you really need to look at, when using this in your project.

Creating an object of it allows you to set more or less the parameters that you know from the cli of FIDO it self.

So your code could look something like this:

Then you need to add something the wrapper can callback when it is done with the inspection, Code a class that implements the interface
The reason for this is that we don't want the wrapper to "pause" the calling Thread, maybe this is call from a button or something.

Then you just need to call

When it is done you should receive a callback.

if you want to wait for the process to finish before the calling code continues you can call

This call even waits until after all the callbacks have executed.

The wrapper will also throw exceptions, in case the some of the parameters provided to the wrapper doesn't exist, e.g. the path.

java java Delete
python python Delete
fido fido Delete
wrapper wrapper Delete
implementation implementation Delete
technical technical Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.