DocumentConverterpublic class StreamOpenOfficeDocumentConverter extends AbstractOpenOfficeDocumentConverter
DocumentConverter implementation.
This implementation passes document data to and from the OpenOffice.org service as streams.
Stream-based conversions are slower than the default file-based ones (provided
by OpenOfficeDocumentConverter) but they allow to run the OpenOffice.org
service on a different machine, or under a different system user on the same
machine without file permission problems.
Warning! There is a bug in OpenOffice.org 2.2.x that causes some input formats, including Word and Excel, not to work when using stream-base conversions.
Use this implementation only if OpenOfficeDocumentConverter is not possible.
OpenOfficeDocumentConverteropenOfficeConnection| Constructor | Description |
|---|---|
StreamOpenOfficeDocumentConverter(OpenOfficeConnection connection) |
|
StreamOpenOfficeDocumentConverter(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) |
convert, convert, convert, convert, getDefaultLoadProperties, getDocumentFormatRegistry, property, refreshDocument, setDefaultLoadProperty, toPropertyValuespublic StreamOpenOfficeDocumentConverter(OpenOfficeConnection connection)
public StreamOpenOfficeDocumentConverter(OpenOfficeConnection connection, DocumentFormatRegistry formatRegistry)
protected void convertInternal(java.io.File inputFile,
DocumentFormat inputFormat,
java.io.File outputFile,
DocumentFormat outputFormat)
convertInternal in class AbstractOpenOfficeDocumentConverterprotected void convertInternal(java.io.InputStream inputStream,
DocumentFormat inputFormat,
java.io.OutputStream outputStream,
DocumentFormat outputFormat)
convertInternal in class AbstractOpenOfficeDocumentConverter