public class PoiHssfContentTransformer extends TikaPoweredContentTransformer
Apache Tika and
Apache POI to perform
conversions from Excel spreadsheets.
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 java.lang.String |
WRONG_FORMAT_MESSAGE_ID
Error message to delegate to NodeInfoBean
|
LINE_BREAK, sourceMimeTypestransformerDebug| Constructor and Description |
|---|
PoiHssfContentTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.xml.sax.ContentHandler |
getContentHandler(java.lang.String targetMimeType,
java.io.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(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Make sure we win over openoffice when it comes to producing
HTML
|
boolean |
isTransformableMimetype(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Can we do the requested transformation via Tika?
We support transforming to HTML, XML, Text or CSV
|
buildParseContext, transformInternalcheckTransformable, getTransformationTime, recordTime, register, setProperties, setRegistry, toString, transform, transform, transformgetBeanName, getLimits, getLimits, getLimits, getMaxPages, getMaxSourceSizeKBytes, getMaxSourceSizeKBytes, getMimetypeLimits, getPageLimit, getReadLimitKBytes, getReadLimitTimeMs, getTimeoutMs, isPageLimitSupported, isTransformable, isTransformable, isTransformableSize, setBeanName, setLimits, setMaxPages, setMaxSourceSizeKBytes, setMimetypeLimits, setPageLimit, setPageLimitsSuported, setReaderLimits, setReadLimitKBytes, setReadLimitTimeMs, setTimeoutMs, setTransformerDebuggetMimetype, getMimetypeService, isSupportedTransformation, setExplicitTransformations, setMimetypeService, setSupportedTransformationspublic static final java.lang.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(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
isTransformableMimetype in interface ContentTransformerisTransformableMimetype in class TikaPoweredContentTransformersourceMimetype - the source mimetypetargetMimetype - the target mimetypeoptions - the transformation optionspublic boolean isExplicitTransformation(java.lang.String sourceMimetype,
java.lang.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 org.xml.sax.ContentHandler getContentHandler(java.lang.String targetMimeType,
java.io.Writer output)
throws javax.xml.transform.TransformerConfigurationException
TikaPoweredContentTransformergetContentHandler in class TikaPoweredContentTransformerjavax.xml.transform.TransformerConfigurationExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.