|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
jsky.util.SaxParserUtil
jsky.catalog.astrocat.AstroCatXML
public final class AstroCatXML
Parses an XML stream conforming to the document type definition "AstroCat.dtd" and saves the definitions found there.
Constructor Summary | |
---|---|
AstroCatXML()
Default constructor. |
Method Summary | |
---|---|
void |
_catalogEnd()
|
void |
_catalogsEnd()
|
void |
_catalogsStart(org.xml.sax.Attributes attrs)
|
void |
_catalogStart(org.xml.sax.Attributes attrs)
|
void |
_optionEnd()
|
void |
_optionsEnd()
|
void |
_optionsStart(org.xml.sax.Attributes attrs)
|
void |
_optionStart(org.xml.sax.Attributes attrs)
|
void |
_paramEnd()
|
void |
_paramsEnd()
|
void |
_paramsStart(org.xml.sax.Attributes attrs)
|
void |
_paramStart(org.xml.sax.Attributes attrs)
|
void |
_symbolEnd()
|
void |
_symbolsEnd()
|
void |
_symbolsStart(org.xml.sax.Attributes attrs)
|
void |
_symbolStart(org.xml.sax.Attributes attrs)
|
java.util.List |
getCatalogs()
Return the list of AstroCatalog definitions found in the XML file after parsing |
static void |
main(java.lang.String[] args)
Test cases |
static void |
save(java.io.File file,
java.util.List catalogs)
Save the given list of catalog descriptions in the given file. |
Methods inherited from class jsky.util.SaxParserUtil |
---|
characters, endElement, error, fatalError, getCData, getURL, parse, parse, parse, parse, parse, resolveEntity, setCData, startElement, warning |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AstroCatXML()
Method Detail |
---|
public java.util.List getCatalogs()
public void _catalogsStart(org.xml.sax.Attributes attrs)
public void _catalogsEnd()
public void _catalogStart(org.xml.sax.Attributes attrs)
public void _catalogEnd()
public void _paramsStart(org.xml.sax.Attributes attrs)
public void _paramsEnd()
public void _paramStart(org.xml.sax.Attributes attrs)
public void _paramEnd()
public void _optionsStart(org.xml.sax.Attributes attrs)
public void _optionsEnd()
public void _optionStart(org.xml.sax.Attributes attrs)
public void _optionEnd()
public void _symbolsStart(org.xml.sax.Attributes attrs)
public void _symbolsEnd()
public void _symbolStart(org.xml.sax.Attributes attrs)
public void _symbolEnd()
public static void save(java.io.File file, java.util.List catalogs) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |