Class ArticleContentExtrator

    • Constructor Detail

      • ArticleContentExtrator

        public ArticleContentExtrator()
    • Method Detail

      • extractTitle

        public static java.lang.String extractTitle​(java.lang.String html)
                                             throws org.htmlparser.util.ParserException
        Extracts the title from the given HTML.
        Returns:
        never null, just an empty string if not parsable.
        Throws:
        org.htmlparser.util.ParserException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException,
                                java.lang.InterruptedException,
                                java.util.concurrent.ExecutionException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException