| java.lang.Object org.opencms.workplace.tools.database.CmsHtmlImportConverter
CmsHtmlImportConverter | public class CmsHtmlImportConverter (Code) | | This class implements Html-converting routines based on tidy to modify the
Html code of the imported Html pages.
author: Michael Emmerich version: $Revision: 1.13 $ since: 6.0.0 |
Method Summary | |
public void | convertHTML(Reader input, Writer output, String startPattern, String endPattern, Hashtable properties) | public String | convertHTML(String filename, String inString, String startPattern, String endPattern, Hashtable properties) | public static String | extractHtml(String content, String startpoint, String endpoint) |
CmsHtmlImportConverter | public CmsHtmlImportConverter(CmsHtmlImport htmlImport, boolean xmlMode)(Code) | | Default constructor, creates a new HtmlConverter.
Parameters: htmlImport - reference to the htmlimport Parameters: xmlMode - switch for setting the import to HTML or XML mode |
convertHTML | public void convertHTML(Reader input, Writer output, String startPattern, String endPattern, Hashtable properties)(Code) | | Transforms HTML code into user defined output.
Parameters: input - Reader with HTML code Parameters: output - Writer with transformed code Parameters: startPattern - the start pattern definition for content extracting Parameters: endPattern - the end pattern definition for content extracting Parameters: properties - the file properties |
convertHTML | public String convertHTML(String filename, String inString, String startPattern, String endPattern, Hashtable properties)(Code) | | Transforms HTML code into user defined output.
Parameters: filename - the absolute path in the real filesystem of the file to convert Parameters: inString - String with HTML code Parameters: startPattern - the start pattern definition for content extracting Parameters: endPattern - the end pattern definition for content extracting Parameters: properties - the file properties String with transformed code |
extractHtml | public static String extractHtml(String content, String startpoint, String endpoint)(Code) | | Extracts the content of a HTML page.
This method should be pretty robust and work even if the input HTML does not contains
the specified matchers.
Parameters: content - the content to extract the body from Parameters: startpoint - the point where matching starts Parameters: endpoint - the point where matching ends the extracted body tag content |
|
|