public class ArchiveContentTransformer extends TikaPoweredContentTransformer
Modifier and Type | Field and Description |
---|---|
static ArrayList<String> |
SUPPORTED_MIMETYPES
We support all the archive mimetypes that the Tika
package parser can handle
|
documentSelector, LINE_BREAK, sourceMimeTypes, WRONG_FORMAT_MESSAGE_ID
transformerDebug
transformerConfig
Constructor and Description |
---|
ArchiveContentTransformer() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.tika.parser.ParseContext |
buildParseContext(org.apache.tika.metadata.Metadata metadata,
String targetMimeType,
TransformationOptions options)
By default returns a ParseContent that does not recurse
|
protected org.apache.tika.parser.Parser |
getParser()
Returns the correct Tika Parser to process
the document.
|
void |
setIncludeContents(String includeContents) |
void |
setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
Injects the TikaConfig to use
|
getComments, getContentHandler, getDocumentSelector, isTransformableMimetype, setDocumentSelector, transformInternal
checkTransformable, getExecutorService, getRetryTransformOnDifferentMimeType, getStrictMimeTypeCheck, getTransformationTime, getTransformationTime, isTransformationLimitedInternally, recordError, recordTime, recordTime, register, setAdditionalThreadTimout, setExecutorService, setMetadataExtracterConfig, setRegisterTransformer, setRegistry, setRetryTransformOnDifferentMimeType, setStrictMimeTypeCheck, setUseTimeoutThread, toString, transform, transform, transform
getLimits, getLimits, getLimits, getMaxPages, getMaxSourceSizeKBytes, getMaxSourceSizeKBytes, getPageLimit, getReadLimitKBytes, getReadLimitTimeMs, getTimeoutMs, isPageLimitSupported, isTransformable, isTransformable, isTransformableSize, setLimits, setMaxPages, setMaxSourceSizeKBytes, setMimetypeLimits, setPageLimit, setPageLimitsSupported, setReaderLimits, setReadLimitKBytes, setReadLimitTimeMs, setTimeoutMs, setTransformerDebug
deprecatedSetter, equals, getBeanName, getCommentsOnlySupports, getExtensionOrAny, getMimetype, getMimetypeService, getName, getSimpleName, hashCode, isExplicitTransformation, isSupportedTransformation, onlySupports, setBeanName, setExplicitTransformations, setMimetypeService, setSupportedTransformations, setTransformerConfig, setUnsupportedTransformations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, isExplicitTransformation
public void setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
tikaConfig
- The Tika Config to usepublic void setIncludeContents(String includeContents)
protected org.apache.tika.parser.Parser getParser()
TikaPoweredContentTransformer
TikaAutoContentTransformer
which
makes use of the Tika auto-detection.getParser
in class TikaPoweredContentTransformer
protected org.apache.tika.parser.ParseContext buildParseContext(org.apache.tika.metadata.Metadata metadata, String targetMimeType, TransformationOptions options)
TikaPoweredContentTransformer
buildParseContext
in class TikaPoweredContentTransformer
Copyright © 2005–2017 Alfresco Software. All rights reserved.