Class HHCParser
java.lang.Object
nl.siegmann.epublib.chm.HHCParser
Parses the windows help index (.hhc) file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<TOCReference> parseHhc(InputStream hhcFile, Resources resources) private static List<TOCReference> processLiNode(Node liNode, Resources resources) private static TOCReferenceprocessObjectNode(Node objectNode, Resources resources) Processes a CHM object node into a TOCReference If the local name is empty then a TOCReference node is made with a null href value.private static List<TOCReference> processUlNode(Node ulNode, Resources resources)
-
Field Details
-
DEFAULT_HTML_INPUT_ENCODING
- See Also:
-
-
Constructor Details
-
HHCParser
public HHCParser()
-
-
Method Details
-
parseHhc
public static List<TOCReference> parseHhc(InputStream hhcFile, Resources resources) throws IOException, ParserConfigurationException, XPathExpressionException -
processUlNode
-
processLiNode
-
processObjectNode
Processes a CHM object node into a TOCReference If the local name is empty then a TOCReference node is made with a null href value.- Parameters:
objectNode-- Returns:
- A TOCReference of the object has a non-blank param child with name 'Name' and a non-blank param name 'Local'
-