Package org.basex.build.html
Class HtmlParser
- java.lang.Object
-
- org.basex.core.jobs.Job
-
- org.basex.build.Parser
-
- org.basex.build.SingleParser
-
- org.basex.build.xml.XMLParser
-
- org.basex.build.html.HtmlParser
-
public final class HtmlParser extends XMLParser
This class uses TagSoup to convert HTML input to well-formed XML. If TagSoup is not found in the classpath, the original document is passed on. TagSoup was written by John Cowan and is based on the Apache 2.0 License:http://home.ccil.org/~cowan/XML/tagsoup/
.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Constructor Summary
Constructors Constructor Description HtmlParser(IO source, MainOptions options, HtmlOptions hopts)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
available()
Checks if a CatalogResolver is available.static String
parser()
Returns the name of the parser, or an empty string.-
Methods inherited from class org.basex.build.xml.XMLParser
close, detailedInfo, parse, progressInfo
-
Methods inherited from class org.basex.build.SingleParser
parse
-
Methods inherited from class org.basex.build.Parser
emptyParser, info, singleParser, source, target, xmlParser
-
-
-
-
Constructor Detail
-
HtmlParser
public HtmlParser(IO source, MainOptions options, HtmlOptions hopts) throws IOException
Constructor.- Parameters:
source
- document sourceoptions
- main optionshopts
- html options- Throws:
IOException
- I/O exception
-
-
Method Detail
-
available
public static boolean available()
Checks if a CatalogResolver is available.- Returns:
- result of check
-
parser
public static String parser()
Returns the name of the parser, or an empty string.- Returns:
- name of parser
-
-