-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Hello,
we have integrated Droid in our java application, however we would like to know what is the appropriate way to abort a FileSystemIdentificationRequest if it takes too much time. Is calling close on the request / interrupting the thread running the code sufficient or what is the best way to get a reliable abort from the API? Code fragment in use as example:
RequestMetaData metadata = new RequestMetaData(Files.size(filePath), Files.getLastModifiedTime(filePath).toMillis(), fileName);
RequestIdentifier identifier = new RequestIdentifier(file.toURI());
droidRequest = new FileSystemIdentificationRequest(metadata, identifier);
droidRequest.open(filePath);
IdentificationResultCollection results = binSigIdentifier.matchBinarySignatures(droidRequest); // <= used here
IdentificationResultCollection containerResults = identifyContainer(droidRequest, results); // <= and here
Thank you
fahra87
Metadata
Metadata
Assignees
Labels
No labels