|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.converter.openoffice.OpenOfficeConverter
public abstract class OpenOfficeConverter
A document format converter using the OpenOffice API to perform its task. This class is the common one of all of the API document conversion implementation based on the OpenOffice API.
| Constructor Summary | |
|---|---|
OpenOfficeConverter()
|
|
| Method Summary | |
|---|---|
protected void |
closeConnection(com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection connection)
Closes the connection to an OpenOffice service. |
File |
convert(File source,
DocumentFormat inFormat,
FilterOption... options)
Converts the specified document in the specified format. |
File |
convert(File source,
File destination,
DocumentFormat inFormat,
FilterOption... options)
Converts the specified document in the specified format. |
void |
convert(InputStream source,
DocumentFormat inFormat,
OutputStream destination,
DocumentFormat outFormat,
FilterOption... options)
Converts the specified inputstream/format in the specified outputstream/format. |
protected void |
convert(SilverpeasOpenOfficeDocumentConverter documentConverter,
File source,
File destination,
FilterOption... options)
Technical converting operations |
protected void |
convert(SilverpeasOpenOfficeDocumentConverter documentConverter,
InputStream source,
DocumentFormat inFormat,
OutputStream destination,
DocumentFormat outFormat,
FilterOption... options)
Technical converting operations |
protected SilverpeasOpenOfficeDocumentConverter |
getOpenOfficeDocumentConverterFrom(com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection connection)
Gets a converter from the OpenOffice service at the end-point of the connection. |
abstract boolean |
isDocumentSupported(File document)
Is the specified document in the format on which the converter works? |
protected com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection |
openConnection()
Opens a connection to an OpenOffice service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.silverpeas.converter.DocumentFormatConversion |
|---|
getSupportedFormats |
| Constructor Detail |
|---|
public OpenOfficeConverter()
| Method Detail |
|---|
public abstract boolean isDocumentSupported(File document)
document - the document to check its format is supported.
public File convert(File source,
DocumentFormat inFormat,
FilterOption... options)
DocumentFormatConversion
convert in interface DocumentFormatConversionsource - the document to convert.inFormat - the format into which the document has to be converted.options - additional options such as "PageRange"
public File convert(File source,
File destination,
DocumentFormat inFormat,
FilterOption... options)
DocumentFormatConversion
convert in interface DocumentFormatConversionsource - the document to convert.destination - the converted document.inFormat - the format into which the document has to be converted.
public void convert(InputStream source,
DocumentFormat inFormat,
OutputStream destination,
DocumentFormat outFormat,
FilterOption... options)
DocumentFormatConversion
convert in interface DocumentFormatConversionsource - the source stream to convert.inFormat - the format from which the document has to be converted.destination - the converted stream.outFormat - the format into which the document has to be converted.
protected void convert(SilverpeasOpenOfficeDocumentConverter documentConverter,
File source,
File destination,
FilterOption... options)
documentConverter - source - destination - options -
protected void convert(SilverpeasOpenOfficeDocumentConverter documentConverter,
InputStream source,
DocumentFormat inFormat,
OutputStream destination,
DocumentFormat outFormat,
FilterOption... options)
documentConverter - source - inFormat - destination - outFormat - options -
protected com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection openConnection()
throws ConnectException
ConnectException - if no connection can be opened with an OpenOffice service. This can
occurs when no OpenOffice service is available for example.protected void closeConnection(com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection connection)
connection - the connection to release.protected SilverpeasOpenOfficeDocumentConverter getOpenOfficeDocumentConverterFrom(com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection connection)
connection - the connection an OpenOffice service.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||