public class HtmlToKeel extends Importer
HtmlToKeel
This class extends from the Importer class. It is used to read data from a html table format and transform them to the KEEL format.processHeader
Constructor and Description |
---|
HtmlToKeel(java.lang.String nullValueUser)
HtmlToKeel class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ConverterXhtml(java.lang.String fileHtml,
java.lang.String fileXhtmlAux)
Method used to transform the data from the html file given as parameter to
xhtml format file which will be stored in the second file given.
|
void |
FindParent(Element current,
java.lang.String childrenName)
Searchs in the whole xml tree to find the parent of the node or xaml tag whose name is
equals to the one given as parameter.
|
java.lang.String |
ListChildrenText(Element current,
int cont)
Recursive method that returns the text containing all the descendants of a xml tag.
|
void |
Start(java.lang.String pathnameInput,
java.lang.String pathnameOutput)
Method used to transform the data from the html file given as parameter to
KEEL format file which will be stored in the second file given.
|
DataType, Save, setProcessHeader, UcFirst
public HtmlToKeel(java.lang.String nullValueUser)
nullValueUser.
- Null value symbols.public void Start(java.lang.String pathnameInput, java.lang.String pathnameOutput) throws java.lang.Exception
pathnameInput
- html file path.pathnameOutput
- KEEL file path.java.lang.Exception
- if the files can not be read or written.public java.lang.String ListChildrenText(Element current, int cont)
current
- actual node or xml tag.cont
- descendants counter.public void ConverterXhtml(java.lang.String fileHtml, java.lang.String fileXhtmlAux) throws java.lang.Exception
fileHtml
- input html file path.fileXhtmlAux
- output xhtml file path.java.lang.Exception
- if the files can not be read or written.public void FindParent(Element current, java.lang.String childrenName)
current
- actual node or xml tag.childrenName
- name node asked.