public interface DTDReader
XMLStreamReader implementations that provide additional
data about XMLStreamConstants.DTD events.
All the requirements outlined in org.apache.axiom.ext.stax apply to this extension
interface. In particular, to get a reference to the extension, the consumer MUST call
XMLStreamReader.getProperty(String) with PROPERTY as the property name.
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY
The name of the property used to look up this extension interface from a
XMLStreamReader implementation. |
| Modifier and Type | Method and Description |
|---|---|
String |
getPublicId()
Get the public ID of the external subset.
|
String |
getRootName()
Get the root name of the DTD, i.e. the name immediately following the DOCTYPE keyword.
|
String |
getSystemId()
Get the system ID of the external subset.
|
static final String PROPERTY
XMLStreamReader implementation.String getRootName()
nullIllegalStateException - if the current event is not XMLStreamConstants.DTDString getPublicId()
null if there is no external subset or no public ID
has been specified for the external subsetIllegalStateException - if the current event is not XMLStreamConstants.DTDString getSystemId()
null if there is no external subsetIllegalStateException - if the current event is not XMLStreamConstants.DTDCopyright © The Apache Software Foundation. All Rights Reserved.