public EmbeddedDocumentExtractor(ParseContext context) {
this.context = context;
}
public boolean shouldParseEmbedded(Metadata metadata) {
DocumentSelector selector = context.get(DocumentSelector.class);
if (selector != null) {
return selector.select(metadata);
}
FilenameFilter filter = context.get(FilenameFilter.class);
if (filter != null) {
String name = metadata.get(Metadata.RESOURCE_NAME_KEY);