|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.transformer.common.TransformerFactory
public class TransformerFactory
This is factory to select the DocumentTransformer based on the file input types and out of the file types. This would be using the spring transformer.xml to read the WordDocumentManager and DocumentTransform. User can plug in their own implementation as a spring bean
Constructor Summary | |
---|---|
TransformerFactory()
|
Method Summary | |
---|---|
static DocumentTransformer |
getTransformer(java.util.Properties csproperties,
java.lang.String inputFileExtention,
java.lang.String outputFileExtention)
Create an instance of the specified document transformer. |
static DocumentTransformer |
getTransformer(java.lang.String sClassName,
Configuration config)
Create an instance of the document transformer specified by the implementation classname. |
static DocumentTransformer |
getTransformer(java.lang.String inputFileExtention,
java.lang.String outputFileExtention)
Create an instance of the specified document transformer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformerFactory()
Method Detail |
---|
public static DocumentTransformer getTransformer(java.lang.String inputFileExtention, java.lang.String outputFileExtention)
inputFileExtention
- -- input file typeoutputFileExtention
- -- output file type
public static DocumentTransformer getTransformer(java.util.Properties csproperties, java.lang.String inputFileExtention, java.lang.String outputFileExtention)
csproperties
- -- Content Server related configuration like
outputfolder installdirectory etc can be passed here.inputFileExtention
- -- input file typeoutputFileExtention
- -- output file type
public static DocumentTransformer getTransformer(java.lang.String sClassName, Configuration config)
sClassName
- -- Implementation class name for the document
transformerconfig
- -- Configuration for the transformer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |