OfficeConverter
instead@Deprecated public interface OpenOfficeConverter
Modifier and Type | Method and Description |
---|---|
Map<String,byte[]> |
convert(Map<String,InputStream> inputStreams,
String inputFileName,
String outputFileName)
Deprecated.
Attempts to convert the input document identified by inputStreams and inputFileName arguments into
the format identified by outputFileName argument.
|
boolean |
isMediaTypeSupported(String mediaType)
Deprecated.
Checks if the office documents with the specified media type can be converted by this converter.
|
Map<String,byte[]> convert(Map<String,InputStream> inputStreams, String inputFileName, String outputFileName) throws OpenOfficeConverterException
Attempts to convert the input document identified by inputStreams and inputFileName arguments into the format identified by outputFileName argument.
inputStreams
- input streams corresponding to the input document. It's possible that some document types
(e.g. HTML) consists of more than one input stream corresponding to different artifacts embedded
within document content.inputFileName
- name of the main input file within inputStreams map. This argument is used to
determine the format of the input document.outputFileName
- name of the main output file. An entry corresponding to this name will be available in the
results map if the conversion succeeds. This argument is used to determine the format of the output
document.OpenOfficeConverterException
- if an error occurs during the conversion.boolean isMediaTypeSupported(String mediaType)
mediaType
- a media typetrue
if the specified media type is supported, false
otherwiseCopyright © 2004–2021 XWiki. All rights reserved.