Package nl.siegmann.epublib.util
Class ToolsResourceUtil
- java.lang.Object
-
- nl.siegmann.epublib.util.ToolsResourceUtil
-
public class ToolsResourceUtil extends java.lang.ObjectVarious resource utility methods
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description ToolsResourceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringfindTitleFromXhtml(Resource resource)Retrieves whatever it finds between <title>...</title> or <h1-7>...</h1-7>.static java.lang.StringgetTitle(Resource resource)
-
-
-
Method Detail
-
getTitle
public static java.lang.String getTitle(Resource resource)
-
findTitleFromXhtml
public static java.lang.String findTitleFromXhtml(Resource resource)
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>.
-
-