|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.crimson.parser.XMLReaderImpl
This implements the SAX2 XMLReader.
| Field Summary | |
private org.xml.sax.ContentHandler |
contentHandler
|
private static String |
DECLARATION_HANDLER
|
private org.xml.sax.ext.DeclHandler |
declHandler
|
private org.xml.sax.DTDHandler |
dtdHandler
|
private org.xml.sax.EntityResolver |
entityResolver
|
private org.xml.sax.ErrorHandler |
errorHandler
|
private static String |
EXTERNAL_GENERAL
|
private static String |
EXTERNAL_PARAMETER
|
private static String |
FEATURES
|
private static String |
LEXICAL_HANDLER
|
private static String |
LEXICAL_PARAMETER_ENTITIES
|
private org.xml.sax.ext.LexicalHandler |
lexicalHandler
|
private static String |
NAMESPACE_PREFIXES
|
private boolean |
namespaces
|
private static String |
NAMESPACES
|
private Parser2 |
parser
|
private boolean |
parsing
|
private boolean |
prefixes
|
private static String |
PROPERTIES
|
private static String |
STRING_INTERNING
|
private boolean |
validation
|
private static String |
VALIDATION
|
| Constructor Summary | |
XMLReaderImpl()
Default constructor is explicitly declared here |
|
| Method Summary | |
private void |
checkNotParsing(String type,
String name)
Throw an exception if we are parsing. |
org.xml.sax.ContentHandler |
getContentHandler()
Return the current content handler. |
org.xml.sax.DTDHandler |
getDTDHandler()
Return the current DTD handler. |
org.xml.sax.EntityResolver |
getEntityResolver()
Return the current entity resolver. |
org.xml.sax.ErrorHandler |
getErrorHandler()
Return the current error handler. |
boolean |
getFeature(String name)
Check a parser feature. |
Object |
getProperty(String name)
Get a parser property. |
void |
parse(org.xml.sax.InputSource input)
Parse an XML document. |
void |
parse(String systemId)
Parse an XML document. |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Set the content handler. |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Set the DTD handler. |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Set the entity resolver. |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
Set the error handler. |
void |
setFeature(String name,
boolean state)
Set a feature for the parser. |
void |
setProperty(String name,
Object value)
Set a parser property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final String FEATURES
private static final String NAMESPACES
private static final String NAMESPACE_PREFIXES
private static final String STRING_INTERNING
private static final String VALIDATION
private static final String EXTERNAL_GENERAL
private static final String EXTERNAL_PARAMETER
private static final String LEXICAL_PARAMETER_ENTITIES
private static final String PROPERTIES
private static final String LEXICAL_HANDLER
private static final String DECLARATION_HANDLER
private boolean namespaces
private boolean prefixes
private boolean validation
private org.xml.sax.ext.LexicalHandler lexicalHandler
private org.xml.sax.ext.DeclHandler declHandler
private org.xml.sax.ContentHandler contentHandler
private org.xml.sax.DTDHandler dtdHandler
private org.xml.sax.ErrorHandler errorHandler
private org.xml.sax.EntityResolver entityResolver
private Parser2 parser
private boolean parsing
| Constructor Detail |
public XMLReaderImpl()
| Method Detail |
public boolean getFeature(String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getFeature in interface org.xml.sax.XMLReadername - The feature name, as a complete URI.
org.xml.sax.SAXNotRecognizedException - If the feature
name is not known.
org.xml.sax.SAXNotSupportedException - If querying the
feature state is not supported.XMLReader.setFeature(java.lang.String, boolean)
public void setFeature(String name,
boolean state)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setFeature in interface org.xml.sax.XMLReadername - The feature name, as a complete URI.state - The requested feature state.
org.xml.sax.SAXNotRecognizedException - If the feature
name is not known.
org.xml.sax.SAXNotSupportedException - If the feature
state is not supported.XMLReader.getFeature(java.lang.String)
public Object getProperty(String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getProperty in interface org.xml.sax.XMLReadername - The property name.
org.xml.sax.SAXNotRecognizedException - If the feature
name is not known.
org.xml.sax.SAXNotSupportedException - If the feature
state is not supported.XMLReader.getProperty(java.lang.String)
public void setProperty(String name,
Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setProperty in interface org.xml.sax.XMLReadername - The property name.value - The property value.
org.xml.sax.SAXNotRecognizedException - If the feature
name is not known.
org.xml.sax.SAXNotSupportedException - If the feature
state is not supported.XMLReader.getProperty(java.lang.String)public void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.XMLReaderresolver - The new entity resolver.
NullPointerException - If the entity resolver
parameter is null.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)public org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderXMLReader.getEntityResolver()public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler in interface org.xml.sax.XMLReaderNullPointerException - If the DTD handler
parameter is null.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)public org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderXMLReader.getEntityResolver()public void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler in interface org.xml.sax.XMLReaderNullPointerException - If the content handler
parameter is null.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)public org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReaderXMLReader.getEntityResolver()public void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler in interface org.xml.sax.XMLReaderNullPointerException - If the error handler
parameter is null.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)public org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReaderXMLReader.getEntityResolver()
public void parse(String systemId)
throws IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReadersystemId - The absolute URL of the document.
IOException - If there is a problem reading
the raw content of the document.
org.xml.sax.SAXException - If there is a problem
processing the document.parse(org.xml.sax.InputSource),
Parser.parse(java.lang.String)
public void parse(org.xml.sax.InputSource input)
throws IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderinput - An input source for the document.
IOException - If there is a problem reading
the raw content of the document.
org.xml.sax.SAXException - If there is a problem
processing the document.parse(java.lang.String),
Parser.parse(org.xml.sax.InputSource)
private void checkNotParsing(String type,
String name)
throws org.xml.sax.SAXNotSupportedException
Use this method to detect illegal feature or property changes.
type - The type of thing (feature or property).name - The feature or property name.
org.xml.sax.SAXNotSupportedException - If a
document is currently being parsed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||