public boolean select(Metadata metadata) {
            String type = metadata.get(Metadata.CONTENT_TYPE);
            return type != null && type.startsWith("image/");
        }
A {@link DocumentSelector} that accepts only images.
tika-app/src/main/java/org/apache/tika/gui/TikaGUI.java