Package org.opencms.importexport
Class CmsXmlPageConverter
- java.lang.Object
-
- org.opencms.importexport.CmsXmlPageConverter
-
@Deprecated public final class CmsXmlPageConverter extends java.lang.Object
Deprecated.no longer in useConverts legacy pages (OpenCms 5 and earlier) to XML pages (OpenCms 6).- Since:
- 6.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CmsXmlPage
convertToXmlPage(CmsObject cms, byte[] content, java.util.Locale locale, java.lang.String encoding)
Deprecated.Converts the contents of a page into an xml page.
-
-
-
Method Detail
-
convertToXmlPage
public static CmsXmlPage convertToXmlPage(CmsObject cms, byte[] content, java.util.Locale locale, java.lang.String encoding) throws CmsImportExportException, CmsXmlException
Deprecated.Converts the contents of a page into an xml page.- Parameters:
cms
- the cms objectcontent
- the content used with xml templateslocale
- the locale of the body element(s)encoding
- the encoding to the xml page- Returns:
- the xml page content or null if conversion failed
- Throws:
CmsImportExportException
- if the body content or the XMLTEMPLATE element were not foundCmsXmlException
- if there is an error reading xml contents from the byte array into a document
-
-