Class ToolsResourceUtil
java.lang.Object
nl.siegmann.epublib.util.ToolsResourceUtil
Various resource utility methods
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
log
private static org.slf4j.Logger log
-
-
Constructor Details
-
ToolsResourceUtil
public ToolsResourceUtil()
-
-
Method Details
-
getTitle
-
findTitleFromXhtml
Retrieves whatever it finds between <title>...</title> or <h1-7>...</h1-7>. The first match is returned, even if it is a blank string. If it finds nothing null is returned.- Parameters:
resource-- Returns:
- whatever it finds in the resource between <title>...</title> or <h1-7>...</h1-7>.
-