fr.opensagres.xdocreport.converter
Interface IConverter

All Known Implementing Classes:
AbstractConverterEntriesSupport, AbstractConverterNoEntriesSupport, AbstractFOPConverter, AbstractXHTMLConverter, AbstractXSLFOConverter, AbstractXSLTConverter, Docx2PDFViaDocx4jConverter, Docx2XHTMLViaDocx4jConverter, DocxFOPConverter, DocxXHTMLConverter, DocxXSLFOConverter, ODF2PDFViaITextConverter, ODF2XHTMLConverter, ODTFOPConverter, ODTXHTMLConverter, ODTXSLFOConverter, XWPF2PDFViaITextConverter, XWPF2XHTMLConverter

public interface IConverter

Converter API to convert source stream (docx, odt...) to another format (PDF, FO...)


Method Summary
 boolean canSupportEntries()
          Returns true if converter can support input stream entry provider and false otherwise.
 void convert(IEntryInputStreamProvider inProvider, OutputStream out, Options options)
          Convert the given entry input stream provider document to another format.
 void convert(InputStream in, OutputStream out, Options options)
          Convert the given entry input stream document zipped (odt, docx...) to another format.
 MimeMapping getMimeMapping()
          Returns mime mapping switch the kind of the converter (pdf, fo...).
 

Method Detail

convert

void convert(IEntryInputStreamProvider inProvider,
             OutputStream out,
             Options options)
             throws XDocConverterException
Convert the given entry input stream provider document to another format.

Parameters:
inProvider -
out -
options -
Throws:
XDocConverterException

convert

void convert(InputStream in,
             OutputStream out,
             Options options)
             throws XDocConverterException
Convert the given entry input stream document zipped (odt, docx...) to another format.

Parameters:
inProvider -
out -
options -
Throws:
XDocConverterException

getMimeMapping

MimeMapping getMimeMapping()
Returns mime mapping switch the kind of the converter (pdf, fo...).

Returns:

canSupportEntries

boolean canSupportEntries()
Returns true if converter can support input stream entry provider and false otherwise.

Returns:


Copyright © 2013. All rights reserved.