public final 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.
|
static Document |
load(InputStream in, String charsetName, String baseUri, Parser parser)
Parses a Document from an input steam, using the provided Parser.
|
public static Document load(File in, String charsetName, String baseUri) throws IOException
in
- file to load
charsetName
- character set of input
baseUri
- base URI of document, to resolve relative links against
IOException
- on IO error
public 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 input
baseUri
- base URI of document, to resolve relative links against
IOException
- on IO error
public static Document load(InputStream in, String charsetName, String baseUri, Parser parser) throws IOException
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
parser
- alternate parser
to use.
IOException
- on IO error
Copyright © 1998–2019 iText Group NV. All rights reserved.