|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserConfiguration
An implementation should contain the settings expected to parse an XML document.
Settings : for example, a parser may be namespace aware or not, may preserve comments or not, may set a feature or a property...
A default namespaceaware configuration is provided.
NAMESPACEAWARE_PARSER_CONFIGURATION
Nested Class Summary | |
---|---|
static class |
ParserConfiguration.Impl
A standard configuration contains a set of flags and a set of attributes (features and properties) to set to a DOM or SAX parser. |
Field Summary | |
---|---|
static ParserConfiguration |
NAMESPACEAWARE_PARSER_CONFIGURATION
A default configuration that parses documents with namespaces. |
Method Summary | |
---|---|
DocumentBuilder |
newDocumentBuilder()
Return a new DocumentBuilder that has the settings expected. |
XMLReader |
newXMLReader()
Return an XMLReader that has the settings expected. |
Field Detail |
---|
static final ParserConfiguration NAMESPACEAWARE_PARSER_CONFIGURATION
Method Detail |
---|
DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
ParserConfigurationException
- If a parser with this
settings can't be created.XMLReader newXMLReader() throws SAXException
SAXException
- When a SAX parser with such a
configuration can't be get.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |