Class XmlZip2TextConverter
- java.lang.Object
-
- org.nuxeo.ecm.core.convert.plugins.text.extractors.XmlZip2TextConverter
-
- All Implemented Interfaces:
Converter
- Direct Known Subclasses:
DOCX2TextConverter
,OOo2TextConverter
,PPTX2TextConverter
public abstract class XmlZip2TextConverter extends Object implements Converter
XML zip to text converter: parses the XML zip entries to read their content.
-
-
Constructor Summary
Constructors Constructor Description XmlZip2TextConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BlobHolder
convert(BlobHolder blobHolder, Map<String,Serializable> parameters)
Main method to handle the real Conversion Job.void
init(ConverterDescriptor descriptor)
Initializes the Converter.protected abstract void
readXmlZipContent(ZipInputStream zis, XMLReader reader, StringBuilder sb)
-
-
-
Constructor Detail
-
XmlZip2TextConverter
public XmlZip2TextConverter()
-
-
Method Detail
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
Description copied from interface:Converter
Main method to handle the real Conversion Job.Returned
BlobHolder
must implementCachableBlobHolder
, otherwise result won't be cached.- Specified by:
convert
in interfaceConverter
- Throws:
ConversionException
-
init
public void init(ConverterDescriptor descriptor)
Description copied from interface:Converter
Initializes the Converter.This can be used to retrieve some configuration information from the XMap Descriptor.
-
readXmlZipContent
protected abstract void readXmlZipContent(ZipInputStream zis, XMLReader reader, StringBuilder sb) throws IOException, SAXException
- Throws:
IOException
SAXException
-
-