DocumentConverter
public class OpenOfficeDocumentConverter extends AbstractOpenOfficeDocumentConverter
DocumentConverter
implementation.
This implementation passes document data to and from the OpenOffice.org service as file URLs.
File-based conversions are faster than stream-based ones (provided by
StreamOpenOfficeDocumentConverter
) but they require the
OpenOffice.org service to be running locally and have the correct
permissions to the files.
StreamOpenOfficeDocumentConverter
openOfficeConnection
Constructor | Description |
---|---|
OpenOfficeDocumentConverter(OpenOfficeConnection connection) |
|
OpenOfficeDocumentConverter(OpenOfficeConnection connection,
DocumentFormatRegistry formatRegistry) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
convertInternal(java.io.File inputFile,
DocumentFormat inputFormat,
java.io.File outputFile,
DocumentFormat outputFormat) |
|
protected void |
convertInternal(java.io.InputStream inputStream,
DocumentFormat inputFormat,
java.io.OutputStream outputStream,
DocumentFormat outputFormat) |
In this file-based implementation, streams are emulated using temporary files.
|
convert, convert, convert, convert, getDefaultLoadProperties, getDocumentFormatRegistry, property, refreshDocument, setDefaultLoadProperty, toPropertyValues
public OpenOfficeDocumentConverter(OpenOfficeConnection connection)
public OpenOfficeDocumentConverter(OpenOfficeConnection connection, DocumentFormatRegistry formatRegistry)
protected void convertInternal(java.io.InputStream inputStream, DocumentFormat inputFormat, java.io.OutputStream outputStream, DocumentFormat outputFormat)
convertInternal
in class AbstractOpenOfficeDocumentConverter
protected void convertInternal(java.io.File inputFile, DocumentFormat inputFormat, java.io.File outputFile, DocumentFormat outputFormat)
convertInternal
in class AbstractOpenOfficeDocumentConverter