public class ChmParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHM_HTML_INPUT_ENCODING |
static int |
MINIMAL_SYSTEM_TITLE_LENGTH |
Constructor and Description |
---|
ChmParser() |
Modifier and Type | Method and Description |
---|---|
protected static String |
findTitle(org.apache.commons.vfs.FileObject chmRootDir)
Finds in the '#SYSTEM' file the 3rd set of characters that have ascii value >= 32 and >= 126 and is more than 3 characters long.
|
static Book |
parseChm(org.apache.commons.vfs.FileObject chmRootDir) |
static Book |
parseChm(org.apache.commons.vfs.FileObject chmRootDir,
String inputHtmlEncoding) |
public static final String DEFAULT_CHM_HTML_INPUT_ENCODING
public static final int MINIMAL_SYSTEM_TITLE_LENGTH
public static Book parseChm(org.apache.commons.vfs.FileObject chmRootDir) throws XPathExpressionException, IOException, ParserConfigurationException
public static Book parseChm(org.apache.commons.vfs.FileObject chmRootDir, String inputHtmlEncoding) throws IOException, ParserConfigurationException, XPathExpressionException
protected static String findTitle(org.apache.commons.vfs.FileObject chmRootDir) throws IOException
chmRootDir
- IOException
Copyright © 2009–2017. All rights reserved.