![]()
|
: Class SAXDriver
com.icl.saxon.aelfred
|
Name | Notes | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(URL)/external-general-entities |
Value is fixed at true | (URL)/external-parameter-entities |
Value is fixed at true | (URL)/namespace-prefixes |
Value defaults to false (but XML 1.0 names are
always reported) | (URL)/namespaces |
Value defaults to true | (URL)/string-interning |
Value is fixed at true | (URL)/validation |
Value is fixed at false | (URL)/declaration-handler |
A declaration handler may be provided. Declaration of general
entities is exposed, but not parameter entities; none of the entity
names reported here will begin with "%". | (URL)/lexical-handler |
A lexical handler may be provided. Entity boundaries and
comments are not exposed; only CDATA sections and the start/end of
the DTD (the internal subset is not detectible). | |
Note that the declaration handler doesn't suffice for showing all the logical structure of the DTD; it doesn't expose the name of the root element, or the values that are permitted in a NOTATIONS attribute. (The former is exposed as lexical data, and SAX2 beta doesn't expose the latter.)
Although support for several features and properties is "built in" to this parser, it support all others by storing the assigned values and returning them.
This parser currently implements the SAX1 Parser API, but it may not continue to do so in the future.
Parser
Constructor Summary | |
SAXDriver()
Constructs a SAX Parser. |
Method Summary | |
int |
getColumnNumber()
SAX Locator method (don't invoke on parser); |
getContentHandler()
SAX2: Returns the object used to report the logical content of an XML document. |
|
getDTDHandler()
SAX2: Returns the object used to process declarations related to notations and unparsed entities. |
|
getEntityResolver()
SAX2: Returns the object used when resolving external entities during parsing (both general and parameter entities). |
|
getErrorHandler()
SAX2: Returns the object used to receive callbacks for XML errors of all levels (fatal, nonfatal, warning); this is never null; |
|
boolean |
getFeature(java.lang.String featureId)
SAX2: Tells the value of the specified feature flag. |
int |
|
int |
getIndex(java.lang.String uri,
java.lang.String local)
SAX2 Attributes method (don't invoke on parser); |
int |
getLength()
SAX1 AttributeList, SAX2 Attributes method (don't invoke on parser); |
int |
getLineNumber()
SAX Locator method (don't invoke on parser); |
java.lang.String |
getLocalName(int index)
SAX2 Attributes method (don't invoke on parser); |
java.lang.String |
getName(int i)
SAX1 AttributeList method (don't invoke on parser); |
java.lang.Object |
getProperty(java.lang.String propertyId)
SAX2: Returns the specified property. |
java.lang.String |
getPublicId()
SAX Locator method (don't invoke on parser); |
java.lang.String |
getQName(int i)
SAX2 Attributes method (don't invoke on parser); |
java.lang.String |
getSystemId()
SAX Locator method (don't invoke on parser); |
java.lang.String |
getType(int i)
SAX1 AttributeList, SAX2 Attributes method (don't invoke on parser); |
java.lang.String |
|
java.lang.String |
getType(java.lang.String uri,
java.lang.String local)
SAX2 Attributes method (don't invoke on parser); |
java.lang.String |
getURI(int index)
SAX2 Attributes method (don't invoke on parser); |
java.lang.String |
getValue(int i)
SAX1 AttributeList, SAX2 Attributes method (don't invoke on parser); |
java.lang.String |
|
java.lang.String |
getValue(java.lang.String uri,
java.lang.String local)
SAX Attributes method (don't invoke on parser); |
void |
|
void |
parse(java.lang.String systemId)
SAX1, SAX2: Preferred API to parse an XML document, using a system identifier (URI). |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
setFeature(java.lang.String featureId,
boolean state)
SAX2: Sets the state of feature flags in this parser. |
void |
setLocale(java.util.Locale locale)
SAX1: Sets the locale used for diagnostics; currently, only locales using the English language are supported. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object property)
SAX2: Assigns the specified property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAXDriver()
Method Detail |
public void setLocale(java.util.Locale locale)
locale
- The locale for which diagnostics will be generatedhandler
- The object to receive entity events.handler
- The object to receive DTD events.
handler
- The object to receive document events.handler
- The object to receive error events.java.io.IOException
source
- The XML input source. Don't set 'encoding' unless
and the parser normally throws SAXParseException objects.java.io.IOException
- IOExceptions are normally through through
public void parse(java.lang.String systemId) java.io.IOException
public boolean getFeature(java.lang.String featureId)
public java.lang.Object getProperty(java.lang.String propertyId)
public void setFeature(java.lang.String featureId, boolean state)
public void setProperty(java.lang.String propertyId, java.lang.Object property)
public int getLength()
public java.lang.String getURI(int index)
public java.lang.String getLocalName(int index)
public java.lang.String getQName(int i)
public java.lang.String getName(int i)
public java.lang.String getType(int i)
public java.lang.String getValue(int i)
public int getIndex(java.lang.String uri, java.lang.String local)
public java.lang.String getType(java.lang.String uri, java.lang.String local)
public java.lang.String getValue(java.lang.String uri, java.lang.String local)
public java.lang.String getPublicId()
public java.lang.String getSystemId()
public int getLineNumber()
public int getColumnNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |