Java HTML Parse Jsoup parseFile(String filePath)

Here you can find the source of parseFile(String filePath)

Description

parse File

License

Open Source License

Declaration

public static Document parseFile(String filePath) throws Exception 

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 parseFile(String filePath) throws Exception {
        File inputFile = new File(filePath);
        return Jsoup.parse(inputFile, "UTF-8");
    }/*from  w ww.  j ava2s  .  co m*/
}

Related

  1. parse(String html)
  2. parse(String html)
  3. parse(URL url, int timeout)
  4. parseByteData(ByteBuffer byteData, String charsetName, String baseUri, Parser parser)
  5. parseEmail(String content)
  6. parseInfoBody(Element element)
  7. parseInfoHeader(Element element)
  8. parsePropertyTable(Element table)
  9. parseTable2ArrayList(Document doc, String selectorRow, String selectorCol)