public class

DataUtil

extends Object
java.lang.Object
   ↳ org.jsoup.helper.DataUtil

Class Overview

Internal static utilities for handling data.

Summary

Public Methods
static Document load(InputStream in, String charsetName, String baseUri)
Parses a Document from an input steam.
static Document load(File in, String charsetName, String baseUri)
Loads a file to a Document.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Document load (InputStream in, String charsetName, String baseUri)

Parses a Document from an input steam.

Parameters
in input stream to parse. You will need to close it.
charsetName character set of input
baseUri base URI of document, to resolve relative links against
Returns
  • Document
Throws
IOException on IO error

public static Document load (File in, String charsetName, String baseUri)

Loads a file to a Document.

Parameters
in file to load
charsetName character set of input
baseUri base URI of document, to resolve relative links against
Returns
  • Document
Throws
IOException on IO error