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)
DocumentTransformer
getBytesAsStream
in interface DocumentTransformer
filename
- - Path of document file to be read ..outputformat
- - Output format of the document passed.public String getOutputDocument(String filename, TransformerFormat outputformat)
DocumentTransformer
getOutputDocument
in interface DocumentTransformer
filename
- - path of the document to be transformedpublic String getOutputDocument(String filename, String inputFileExt, TransformerFormat outputformat)
DocumentTransformer
getOutputDocument
in interface DocumentTransformer
filename
- - 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()
DocumentTransformer
release
in interface DocumentTransformer
public void setConfiguration(Configuration configuration)
DocumentTransformer
setConfiguration
in interface DocumentTransformer
configuration
- -- specify supported transformerformat and transformer level properties