Package com.github.euler.tika
Class DefaultEmbeddedStrategy
- java.lang.Object
-
- com.github.euler.tika.EmbeddedStrategy
-
- com.github.euler.tika.DefaultEmbeddedStrategy
-
- All Implemented Interfaces:
org.apache.tika.extractor.EmbeddedDocumentExtractor
public class DefaultEmbeddedStrategy extends EmbeddedStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultEmbeddedStrategy.Builder
-
Constructor Summary
Constructors Constructor Description DefaultEmbeddedStrategy(int maxDepth, List<String> includeParseEmbeddedRegex, List<String> excludeParseEmbeddedRegex, List<String> includeExtractEmbeddedRegex, List<String> excludeExtractEmbeddedRegex, String mimeTypeField, boolean outputName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultEmbeddedStrategy.Builderbuilder()protected booleanisIncluded(List<Pattern> includedPatterns, List<Pattern> excludedPatterns, String value)voidparseEmbedded(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, boolean outputHtml)protected booleanshouldExtractEmbedded(org.apache.tika.metadata.Metadata metadata)protected booleanshouldParseEmbedded(ProcessingContext ctx)-
Methods inherited from class com.github.euler.tika.EmbeddedStrategy
getListener, getParseContext, notifyNewExtractedEmbedded, setListener, setParseContext, shouldParseEmbedded
-
-
-
-
Method Detail
-
parseEmbedded
public void parseEmbedded(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, boolean outputHtml) throws SAXException, IOException
- Throws:
SAXExceptionIOException
-
shouldExtractEmbedded
protected boolean shouldExtractEmbedded(org.apache.tika.metadata.Metadata metadata)
-
shouldParseEmbedded
protected boolean shouldParseEmbedded(ProcessingContext ctx)
- Specified by:
shouldParseEmbeddedin classEmbeddedStrategy
-
isIncluded
protected boolean isIncluded(List<Pattern> includedPatterns, List<Pattern> excludedPatterns, String value)
-
builder
public static DefaultEmbeddedStrategy.Builder builder()
-
-