|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsoup.helper.DataUtil
public class DataUtil
Internal static utilities for handling data.
Method Summary | |
---|---|
static Document |
load(File in,
String charsetName,
String baseUri)
Loads a file to a Document. |
static Document |
load(InputStream in,
String charsetName,
String baseUri)
Parses a Document from an input steam. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Document load(File in, String charsetName, String baseUri) throws IOException
in
- file to loadcharsetName
- character set of inputbaseUri
- base URI of document, to resolve relative links against
IOException
- on IO errorpublic static Document load(InputStream in, String charsetName, String baseUri) throws IOException
in
- input stream to parse. You will need to close it.charsetName
- character set of inputbaseUri
- base URI of document, to resolve relative links against
IOException
- on IO error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |