public class PoiHssfContentTransformer extends TikaPoweredContentTransformer
Will transform from Excel spreadsheets into Html, Xml or Text (space or comma separated)
Handles all sheets in the file.
Modifier and Type | Class and Description |
---|---|
protected static class |
PoiHssfContentTransformer.CsvContentHandler
A wrapper around the normal Tika BodyContentHandler,
which causes things to be CSV encoded rather than
tab separated
|
Modifier and Type | Field and Description |
---|---|
static String |
WRONG_FORMAT_MESSAGE_ID
Error message to delegate to NodeInfoBean
|
documentSelector, LINE_BREAK, sourceMimeTypes
transformerDebug
transformerConfig
Constructor and Description |
---|
PoiHssfContentTransformer() |
Modifier and Type | Method and Description |
---|---|
protected ContentHandler |
getContentHandler(String targetMimeType,
Writer output)
Returns an appropriate Tika ContentHandler for the
requested content type.
|
protected org.apache.tika.parser.Parser |
getParser()
Returns the correct Tika Parser to process
the document.
|
boolean |
isExplicitTransformation(String sourceMimetype,
String targetMimetype,
TransformationOptions options)
Make sure we win over openoffice when it comes to producing
HTML
|
boolean |
isTransformableMimetype(String sourceMimetype,
String targetMimetype,
TransformationOptions options)
Can we do the requested transformation via Tika?
We support transforming to HTML, XML, Text or CSV
|
buildParseContext, getComments, getDocumentSelector, 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, isSupportedTransformation, onlySupports, setBeanName, setExplicitTransformations, setMimetypeService, setSupportedTransformations, setTransformerConfig, setUnsupportedTransformations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName
public static final String WRONG_FORMAT_MESSAGE_ID
protected org.apache.tika.parser.Parser getParser()
TikaPoweredContentTransformer
TikaAutoContentTransformer
which
makes use of the Tika auto-detection.getParser
in class TikaPoweredContentTransformer
public boolean isTransformableMimetype(String sourceMimetype, String targetMimetype, TransformationOptions options)
isTransformableMimetype
in interface ContentTransformer
isTransformableMimetype
in class TikaPoweredContentTransformer
sourceMimetype
- the source mimetypetargetMimetype
- the target mimetypeoptions
- the transformation optionspublic boolean isExplicitTransformation(String sourceMimetype, String targetMimetype, TransformationOptions options)
isExplicitTransformation
in interface ContentTransformer
isExplicitTransformation
in class ContentTransformerHelper
sourceMimetype
- the source mimetypetargetMimetype
- the target mimetypeoptions
- the transformation optionsContentTransformer.isExplicitTransformation(java.lang.String,
java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions)
protected ContentHandler getContentHandler(String targetMimeType, Writer output) throws TransformerConfigurationException
TikaPoweredContentTransformer
getContentHandler
in class TikaPoweredContentTransformer
TransformerConfigurationException
Copyright © 2005–2017 Alfresco Software. All rights reserved.