public interface DocumentBuilder
| Modifier and Type | Method and Description |
|---|---|
Document |
parse(InputSource input)
Parse the input
|
static Document |
parse(InputSource input,
String contentType,
Iterable<DocumentBuilder> parsers)
Parse an input using one of the provided parsers.
|
boolean |
supportsContentType(String type)
Test whether this parser supports a given content media type.
|
boolean supportsContentType(String type)
type - a MIME type, e.g. "text/html"Document parse(InputSource input) throws SAXException, IOException
SAXException - if the input could not be parsedIOException - if the input could not be readstatic Document parse(InputSource input, String contentType, Iterable<DocumentBuilder> parsers) throws SAXException, IOException
SAXException - if the input could not be parsedIOException - if the input could not be readCopyright © 2010–2026 The DAISY Consortium. All rights reserved.