com.artofsolving.jodconverter.openoffice.converter
Class StreamOpenOfficeDocumentConverter
java.lang.Object
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter
com.artofsolving.jodconverter.openoffice.converter.StreamOpenOfficeDocumentConverter
- All Implemented Interfaces:
- DocumentConverter
public class StreamOpenOfficeDocumentConverter
- extends AbstractOpenOfficeDocumentConverter
Alternative stream-based 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.0 that causes some input formats, including Word and Excel, not to work when
using stream-base conversions.
- See Also:
OpenOfficeDocumentConverter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamOpenOfficeDocumentConverter
public StreamOpenOfficeDocumentConverter(OpenOfficeConnection connection)
StreamOpenOfficeDocumentConverter
public StreamOpenOfficeDocumentConverter(OpenOfficeConnection connection,
DocumentFormatRegistry formatRegistry)
convertInternal
protected void convertInternal(java.io.File inputFile,
DocumentFormat inputFormat,
java.io.File outputFile,
DocumentFormat outputFormat)
- Specified by:
convertInternal
in class AbstractOpenOfficeDocumentConverter
convertInternal
protected void convertInternal(java.io.InputStream inputStream,
DocumentFormat inputFormat,
java.io.OutputStream outputStream,
DocumentFormat outputFormat)
- Specified by:
convertInternal
in class AbstractOpenOfficeDocumentConverter
Copyright © 2003-2007 Art of Solving. All Rights Reserved.