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, sourceMimeTypestransformerDebugtransformerConfig| 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, transformInternalcheckTransformable, getExecutorService, getRetryTransformOnDifferentMimeType, getStrictMimeTypeCheck, getTransformationTime, getTransformationTime, isTransformationLimitedInternally, recordError, recordTime, recordTime, register, setAdditionalThreadTimout, setExecutorService, setRegisterTransformer, setRegistry, setRetryTransformOnDifferentMimeType, setStrictMimeTypeCheck, setUseTimeoutThread, toString, transform, transform, transformgetLimits, getLimits, getLimits, getMaxPages, getMaxSourceSizeKBytes, getMaxSourceSizeKBytes, getPageLimit, getReadLimitKBytes, getReadLimitTimeMs, getTimeoutMs, isPageLimitSupported, isTransformable, isTransformable, isTransformableSize, setLimits, setMaxPages, setMaxSourceSizeKBytes, setMimetypeLimits, setPageLimit, setPageLimitsSupported, setReaderLimits, setReadLimitKBytes, setReadLimitTimeMs, setTimeoutMs, setTransformerDebugdeprecatedSetter, equals, getBeanName, getCommentsOnlySupports, getExtensionOrAny, getMimetype, getMimetypeService, getName, getSimpleName, hashCode, isSupportedTransformation, onlySupports, setBeanName, setExplicitTransformations, setMimetypeService, setSupportedTransformations, setTransformerConfig, setUnsupportedTransformationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNamepublic static final String WRONG_FORMAT_MESSAGE_ID
protected org.apache.tika.parser.Parser getParser()
TikaPoweredContentTransformerTikaAutoContentTransformer which
makes use of the Tika auto-detection.getParser in class TikaPoweredContentTransformerpublic boolean isTransformableMimetype(String sourceMimetype, String targetMimetype, TransformationOptions options)
isTransformableMimetype in interface ContentTransformerisTransformableMimetype in class TikaPoweredContentTransformersourceMimetype - the source mimetypetargetMimetype - the target mimetypeoptions - the transformation optionspublic boolean isExplicitTransformation(String sourceMimetype, String targetMimetype, TransformationOptions options)
isExplicitTransformation in interface ContentTransformerisExplicitTransformation in class ContentTransformerHelpersourceMimetype - 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
TikaPoweredContentTransformergetContentHandler in class TikaPoweredContentTransformerTransformerConfigurationExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.