public interface DocumentTransformer
Modifier and Type | Method and Description |
---|---|
InputStream |
getBytesAsStream(String filename, TransformerFormat outputformat)
Deprecated.
- Do not use
|
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.
|
void setConfiguration(Configuration configuration)
configuration
- -- specify supported transformerformat and transformer level propertiesInputStream getBytesAsStream(String filename, TransformerFormat outputformat)
filename
- - Path of document file to be read ..outputformat
- - Output format of the document passed.String getOutputDocument(String filename, TransformerFormat outputformat)
filename
- - path of the document to be transformedoutputformat-
- Output format of the document transformedString getOutputDocument(String filename, String inputFileExt, TransformerFormat outputformat)
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 formatoutputformat-
- Output format of the document transformedvoid release()