|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.xml.SAXBuilder
Build the properties from a SAX XML stream.
Constructor Summary | |
SAXBuilder()
Constructor for XMLOutputter |
|
SAXBuilder(XMLMetaData style)
Constructor for XMLOutputter taking a XMLMetaData style |
Method Summary | |
Bean |
build(char[] array)
Build the model root node from a character array. |
Bean |
build(java.io.File file)
Build the model root node from a File. |
Bean |
build(org.xml.sax.InputSource in)
Build the model root node from the specified SAX input source. |
Bean |
build(java.io.InputStream in)
Build the model root node from an input stream. |
Bean |
build(java.io.Reader reader)
Build the model root node from a Reader. |
Bean |
build(java.lang.String systemId)
Build the model root node from a string URI. |
Bean |
build(java.net.URL url)
Build the model root node from a URL. |
protected void |
configureContentHandler(SAXHandler handler)
Configure the SAXHandler |
protected void |
configureParser(org.xml.sax.XMLReader parser,
SAXHandler contentHandler)
Configure the XMLReader to read the XML input. |
protected SAXHandler |
createContentHandler()
Template method to create the content handler to use for parsing |
protected org.xml.sax.XMLReader |
createParser()
Creates the XMLReader to be used for reading the XML document. |
java.lang.String |
getSAXDriverClassName()
Get the SAX driver classname |
void |
setSAXDriverClassName(java.lang.String saxDriverClass)
Set the SAX driver classname |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAXBuilder()
public SAXBuilder(XMLMetaData style)
Method Detail |
public Bean build(org.xml.sax.InputSource in) throws java.text.ParseException
in
- the input source to read
java.text.ParseException
- if an error occursprotected SAXHandler createContentHandler() throws java.lang.Exception
java.lang.Exception
protected void configureContentHandler(SAXHandler handler) throws java.lang.Exception
handler
- the handler to configure
java.lang.Exception
protected org.xml.sax.XMLReader createParser() throws java.lang.Exception
This uses the specified SAX driver class if available, otherwise it uses JAXP
java.lang.Exception
protected void configureParser(org.xml.sax.XMLReader parser, SAXHandler contentHandler) throws java.lang.Exception
parser
- the parser to configurecontentHandler
- the SAX content handler
java.lang.Exception
public Bean build(java.io.InputStream in) throws java.text.ParseException
in
- the InputStream to read from
java.text.ParseException
- when an error occurspublic Bean build(java.io.File file) throws java.text.ParseException
file
- the File to read from
ModelRootNode
- resultant ModelRootNode object.
java.text.ParseException
- when an error occurspublic Bean build(java.net.URL url) throws java.text.ParseException
url
- the URL to read from
java.text.ParseException
- when an error occurspublic Bean build(java.io.Reader reader) throws java.text.ParseException
reader
- the Reader to read from
java.text.ParseException
- when an error occurspublic Bean build(java.lang.String systemId) throws java.text.ParseException
systemId
- a URI
java.text.ParseException
- when an error occurspublic Bean build(char[] array) throws java.text.ParseException
array
- the array to read from
java.text.ParseException
- when an error occurspublic java.lang.String getSAXDriverClassName()
public void setSAXDriverClassName(java.lang.String saxDriverClass)
saxDriverClass
- the sax driver classname
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |