|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.xml.parser.SaxParser
public final class SaxParser
Parser for XML files. This class uses features specific for Xerces.
| Field Summary | |
|---|---|
protected static java.lang.String |
SCHEMA_FULL_CHECKING_FEATURE_ID
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking). |
| Constructor Summary | |
|---|---|
SaxParser(ModuleService plugin,
SaxDefaultHandler handler)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEncoding()
Get encoding of XML document. |
SourceFileExceptionList |
getExceptionList()
Get errors that occurred during last parsing. |
void |
parse(java.io.File file,
java.lang.String original)
Parses the XML file. |
void |
parse(java.lang.String fileName,
java.lang.String original)
Parses XML file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String SCHEMA_FULL_CHECKING_FEATURE_ID
| Constructor Detail |
|---|
public SaxParser(ModuleService plugin,
SaxDefaultHandler handler)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
plugin - We work for this plugin.handler - Default handler for this application.
javax.xml.parsers.ParserConfigurationException - Severe parser configuration problem.
org.xml.sax.SAXException - Option not recognized or supported.| Method Detail |
|---|
public final void parse(java.lang.String fileName,
java.lang.String original)
throws SourceFileExceptionList
fileName - File name.original - Original URL for the file. If this is null same as
file name.
SourceFileExceptionList - Loading failed.
public final void parse(java.io.File file,
java.lang.String original)
throws SourceFileExceptionList
file - File to parse.original - Original URL for the file. If this is null same as
file.
SourceFileExceptionList - Loading failed.public SourceFileExceptionList getExceptionList()
public java.lang.String getEncoding()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||