Package org.opencms.xml
Class CmsXmlFileTransformer
java.lang.Object
org.opencms.xml.CmsXmlFileTransformer
Transforms all resources of a given type by
-
Constructor Summary
ConstructorsConstructorDescriptionCmsXmlFileTransformer(CmsObject cms, String path, String type, String xslName, InputStream xslStream, I_CmsReport report) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Performs the transformation on all resources of the configured type.
-
Constructor Details
-
CmsXmlFileTransformer
public CmsXmlFileTransformer(CmsObject cms, String path, String type, String xslName, InputStream xslStream, I_CmsReport report) throws CmsException, IOException Creates a new instance.- Parameters:
cms- the CMS contextpath- the ancestor folder under which files should be processedtype- the resource type which should be processedxslName- a string containing information about where the XSL transform is coming fromxslStream- the stream to read the XSL transformation fromreport- the report to write to- Throws:
CmsException- if something goes wrongIOException- if an IO error occurs
-
-
Method Details
-
run
Performs the transformation on all resources of the configured type.- Throws:
CmsException- if something goes wrong
-