|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--uk.org.ogsadai.converters.webrowset.WebRowSetParser
This class parses a WebRowSet XML document, pushing the parsed
results into a WebRowSetHandler
.
WebRowSetHandler
,
ColumnMetaData
,
TypeStrategy
Nested Class Summary | |
private class |
WebRowSetParser.DataHandler
A handler for the data element of a
WebRowSet. |
private class |
WebRowSetParser.MetaDataHandler
A handler for the metadata element of a
WebRowSet. |
private class |
WebRowSetParser.PropertiesHandler
A handler for the properties element of a
WebRowSet. |
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private ElementHandler |
mHandler
|
private org.xml.sax.InputSource |
mInput
|
private org.xml.sax.Locator |
mLocator
|
private WebRowSetHandler |
mOutput
|
private javax.xml.parsers.SAXParser |
mParser
|
Constructor Summary | |
WebRowSetParser()
Constructs a new WebRowSetParser |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
void |
parse()
Starts parsing the XML WebRowSet. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setInput(java.io.Reader reader)
Set the input source of the parser that provides the WebRowSet XML. |
void |
setOutput(WebRowSetHandler handler)
Set the WebRowSetHandler which handles the parsed
data. |
void |
setParsingStrategy(ElementHandler strategy)
The current strategy to use when parsing the data. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attr)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private javax.xml.parsers.SAXParser mParser
private org.xml.sax.InputSource mInput
private WebRowSetHandler mOutput
private ElementHandler mHandler
private org.xml.sax.Locator mLocator
Constructor Detail |
public WebRowSetParser() throws ExternalModuleException
WebRowSetParser
ExternalModuleException
- if there was a problem setting
up the parser.Method Detail |
public void setInput(java.io.Reader reader)
reader
- WebRowSet data source.public void setOutput(WebRowSetHandler handler)
WebRowSetHandler
which handles the parsed
data.
handler
- Handler parsed data.public void setParsingStrategy(ElementHandler strategy)
strategy
- A parsing strategy.public void parse() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
- if a parsing problem occurred.
java.io.IOException
- if there was a problem reading from the
input source.public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |