- All Known Implementing Classes:
XMLParserImpl
public interface XMLParser
A interface to allow pluggable ways of parsing an InputStream into a DOM Document.
-
Method Summary
Modifier and TypeMethodDescriptionparse(InputStream inputStream, boolean disallowDocTypeDeclarations) Parses a document from the input stream.
-
Method Details
-
parse
Document parse(InputStream inputStream, boolean disallowDocTypeDeclarations) throws XMLParserException Parses a document from the input stream. Caller is responsible for closing the stream.- Parameters:
inputStream-disallowDocTypeDeclarations-- Returns:
Document- Throws:
XMLParserException
-