public class ConfigImporter
extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element.
|
static void |
parseYAACXMLConfigFile(java.io.InputStream is,
long fileLength)
Read an InputStream of a YAAC-exported XML configuration file into this YAAC instance
to create its configuration.
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive a Locator object for document events.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Receive notification of the start of an element.
|
public static void parseYAACXMLConfigFile(java.io.InputStream is,
long fileLength)
throws UserAbort
is - InputStream of the opened filefileLength - number of bytes in the input file, used for progress dialogUserAbort - if the user clicks a Cancel button in a progress dialog or any prompting dialogspublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerlocator - A locator for all SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator),
Locatorpublic void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName - The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName - The qualified name (with prefix), or the
empty string if qualified names are not available.attributes - The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.org.xml.sax.SAXException - Any SAX exception, possibly
wrapping another exception.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.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName - The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName - The qualified name (with prefix), or the
empty string if qualified names are not available.org.xml.sax.SAXException - Any SAX exception, possibly
wrapping another exception.