| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DocumentTransformer
This represent the Document to be transformed. It can have various implementation based on the output of the document file type (TEXT/HTML/XML/PDF).
| Method Summary | |
|---|---|
 java.io.InputStream | 
getBytesAsStream(java.lang.String filename,
                 TransformerFormat outputformat)
Deprecated. -Don't use this.  | 
 java.lang.String | 
getOutputDocument(java.lang.String filename,
                  java.lang.String inputFileExt,
                  TransformerFormat outputformat)
This returns path for the transformed document.  | 
 java.lang.String | 
getOutputDocument(java.lang.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.  | 
| Method Detail | 
|---|
void setConfiguration(Configuration configuration)
configuration - -- specify supported transformerformat and
            transformer level properties
java.io.InputStream getBytesAsStream(java.lang.String filename,
                                     TransformerFormat outputformat)
filename - - Path of document file to be read ..outputformat - - Output format of the document passed.
java.lang.String getOutputDocument(java.lang.String filename,
                                   TransformerFormat outputformat)
filename - - path of the document to be transformedoutputformat- - Output format of the document transformed
java.lang.String getOutputDocument(java.lang.String filename,
                                   java.lang.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 transformed
void release()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||