TarArchiveEntry entry = null;
while ((entry = (TarArchiveEntry) in.getNextTarEntry()) != null) {
String name = entry.getName();
if (!entry.isDirectory()) {
final RequestMetaData metaData = new RequestMetaData(1L, 2L, name);
final RequestIdentifier identifier = new RequestIdentifier(uri);
final TarEntryIdentificationRequest tarRequest =
new TarEntryIdentificationRequest(metaData, identifier, tmpDir);
tarRequest.open(in);
final IdentificationResultCollection tarResults =
binarySignatureIdentifier.matchBinarySignatures(tarRequest);