public class DataUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 againstIOException - 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 againstIOException - on IO errorCopyright © 2009-2023 Jonathan Hedley. All Rights Reserved.