public class EntityReferenceSaxHandler extends DefaultHandler
Constructor and Description |
---|
EntityReferenceSaxHandler(ConfigurationProvider configurationProvider,
UnitDescriptor unitDescriptor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getResource()
Returns the parsed resource path.
|
String |
getSystemId() |
boolean |
isFinished()
Returns whether this handler has finished parsing.
|
byte[] |
readResource()
Reads the resource defined in the parsed XML .
|
void |
startElement(String uri,
String localName,
String rawName,
Attributes attributes) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public EntityReferenceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor)
configurationProvider
- The access object for the configuration
files, not null.unitDescriptor
- The description of the generation unit, not null.NullPointerException
- if an argument is null.public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public String getResource()
public String getSystemId()
public boolean isFinished()
public byte[] readResource() throws ConfigurationException
ConfigurationException
- if an error occurs
while reading the resource.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.