|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.parsers.XMLParser
org.apache.xerces.parsers.AbstractXMLDocumentParser
org.apache.xerces.parsers.AbstractSAXParser
org.apache.xerces.parsers.SAXParser
lux.xml.GentleXmlReader
public class GentleXmlReader
An XML parser that attempts to read the entity using the systemID, and if it fails, returns an empty stream. This has the effect of processing DTDs when they are present at the systemID, and ignoring them otherwise.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.xerces.parsers.AbstractSAXParser |
|---|
org.apache.xerces.parsers.AbstractSAXParser.AttributesProxy, org.apache.xerces.parsers.AbstractSAXParser.LocatorProxy |
| Field Summary |
|---|
| Fields inherited from class org.apache.xerces.parsers.SAXParser |
|---|
NOTIFY_BUILTIN_REFS, SYMBOL_TABLE, XMLGRAMMAR_POOL |
| Fields inherited from class org.apache.xerces.parsers.AbstractSAXParser |
|---|
ALLOW_UE_AND_NOTATION_EVENTS, DECLARATION_HANDLER, DOM_NODE, fContentHandler, fDeclaredAttrs, fDeclHandler, fDocumentHandler, fDTDHandler, fLexicalHandler, fLexicalHandlerParameterEntities, fNamespaceContext, fNamespacePrefixes, fNamespaces, fParseInProgress, fQName, fResolveDTDURIs, fStandalone, fUseEntityResolver2, fVersion, fXMLNSURIs, LEXICAL_HANDLER, NAMESPACES, STRING_INTERNING |
| Fields inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
|---|
fDocumentSource, fDTDContentModelSource, fDTDSource, fInDTD |
| Fields inherited from class org.apache.xerces.parsers.XMLParser |
|---|
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration |
| Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler |
|---|
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE |
| Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler |
|---|
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE |
| Constructor Summary | |
|---|---|
|
GentleXmlReader()
|
protected |
GentleXmlReader(org.apache.xerces.xni.parser.XMLParserConfiguration config)
|
| Method Summary | |
|---|---|
InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
setEntityResolver(EntityResolver resolver)
|
| Methods inherited from class org.apache.xerces.parsers.AbstractSAXParser |
|---|
attributeDecl, characters, comment, doctypeDecl, elementDecl, endCDATA, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endNamespaceMapping, endParameterEntity, externalEntityDecl, getAttributePSVI, getAttributePSVIByName, getContentHandler, getDeclHandler, getDTDHandler, getElementPSVI, getEntityResolver, getErrorHandler, getFeature, getLexicalHandler, getProperty, ignorableWhitespace, internalEntityDecl, notationDecl, parse, parse, processingInstruction, reset, setContentHandler, setDeclHandler, setDocumentHandler, setDTDHandler, setErrorHandler, setFeature, setLexicalHandler, setLocale, setProperty, startCDATA, startDocument, startElement, startExternalSubset, startGeneralEntity, startNamespaceMapping, startParameterEntity, unparsedEntityDecl, xmlDecl |
| Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
|---|
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, ignoredCharacters, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startAttlist, startConditional, startContentModel, startDTD, startGroup, textDecl |
| Methods inherited from class org.apache.xerces.parsers.XMLParser |
|---|
parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GentleXmlReader()
protected GentleXmlReader(org.apache.xerces.xni.parser.XMLParserConfiguration config)
| Method Detail |
|---|
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException
resolveEntity in interface EntityResolverSAXExceptionpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface ParsersetEntityResolver in interface XMLReadersetEntityResolver in class org.apache.xerces.parsers.AbstractSAXParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||