@Exported public class FWTransformer extends Object implements DocumentTransformer
| Constructor and Description |
|---|
FWTransformer() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBytesAsStream(String filename,
TransformerFormat outputformat)
Read the document file and return back the InputStream of document.
|
String |
getOutputDocument(String filename,
String inputFileExt,
TransformerFormat outputformat)
This returns path for the transformed document.
|
String |
getOutputDocument(String filename,
TransformerFormat outputformat)
This returns path for the transformed document.
|
void |
release()
This should be called after the document being transformed to release any
resource associated with it.
|
void |
setConfiguration(Configuration configuration)
This method allows to set the transformer level properties.
|
public InputStream getBytesAsStream(String filename, TransformerFormat outputformat)
DocumentTransformergetBytesAsStream in interface DocumentTransformerfilename - - Path of document file to be read ..outputformat - - Output format of the document passed.public String getOutputDocument(String filename, TransformerFormat outputformat)
DocumentTransformergetOutputDocument in interface DocumentTransformerfilename - - path of the document to be transformedpublic String getOutputDocument(String filename, String inputFileExt, TransformerFormat outputformat)
DocumentTransformergetOutputDocument in interface DocumentTransformerfilename - - path of the document to be transformedinputFileExt - -- extension of the input file type. There can be
used when input file itself is not capable of specifying the
formatpublic void release()
DocumentTransformerrelease in interface DocumentTransformerpublic void setConfiguration(Configuration configuration)
DocumentTransformersetConfiguration in interface DocumentTransformerconfiguration - -- specify supported transformerformat and
transformer level properties