protected void handle(Iterator<Directory> directories) throws MetadataException {
        while (directories.hasNext()) {
            Directory directory = directories.next();
            for (DirectoryHandler handler : handlers) {
                if (handler.supports(directory.getClass())) {
                    handler.handle(directory, metadata);
                }
            }
        }
    }
Copies extracted tags to tika metadata using registered handlers.

@param directories Metadata Extractor {@link com.drew.metadata.Directory} instances.
@throws MetadataException This method does not handle exceptions from Metadata Extractor
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-image-module/src/main/java/org/apache/tika/parser/image/ImageMetadataExtractor.java