Java HTML Parse Jsoup getDoc(File file)

Here you can find the source of getDoc(File file)

Description

get Doc

License

Open Source License

Declaration

public static Document getDoc(File file) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

public class Main {
    public static Document getDoc(File file) {
        Document result = null;//from   ww  w.  j a  v  a 2 s. co  m
        try {
            result = Jsoup.parse(file, "UTF-8");
        } catch (Exception e) {
            e.printStackTrace();
        }
        return result;
    }
}

Related

  1. filter(String html)
  2. fixHtml(String htmlContent, String outputFile, String contentFile)
  3. getContentFromHTML(String html)
  4. getDistinctImageUrls(String htmlContent)
  5. getDoc(Connection conn)
  6. getDoc(String path)
  7. getDoc(String url)
  8. getDoctypeName(InputStream s)
  9. getErrorMessage(String htmlStr)