jsky.catalog.irsa
Class IRSAXML

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by jsky.util.SaxParserUtil
          extended by jsky.catalog.irsa.IRSAXML
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class IRSAXML
extends SaxParserUtil

Parses an IRSA Holdings XML file and saves the catalog definitions found there. See http://irsa.ipac.caltech.edu/.

Version:
$Revision: 1.2 $
Author:
Allan Brighton

Constructor Summary
IRSAXML()
          Default constructor.
 
Method Summary
 void _catalogEnd()
           
 void _catalogStart(Attributes attrs)
           
 void _catnameEnd()
           
 void _catnameStart(Attributes attrs)
           
 void _countEnd()
           
 void _countStart(Attributes attrs)
           
 void _databaseEnd()
           
 void _databaseStart(Attributes attrs)
           
 void _ddnameEnd()
           
 void _ddnameStart(Attributes attrs)
           
 void _descEnd()
           
 void _descStart(Attributes attrs)
           
 void _ERROREnd()
           
 void _ERRORStart(Attributes attrs)
           
 void _HoldingsEnd()
           
 void _HoldingsStart(Attributes attrs)
           
 void _serverEnd()
           
 void _serverStart(Attributes attrs)
           
 List getCatalogs()
          Return the list of IRSACatalog definitions found in the XML file after parsing
static void main(String[] args)
          Test cases
 void save(File dir, List catalogs)
          Save the given list of catalog descriptions as a set of IRSA XML files in the given directory.
 
Methods inherited from class jsky.util.SaxParserUtil
characters, endElement, error, fatalError, getCData, getURL, parse, parse, parse, resolveEntity, 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

IRSAXML

public IRSAXML()
Default constructor. Call parse(urlStr) to do the actual parsing.

Method Detail

getCatalogs

public List getCatalogs()
Return the list of IRSACatalog definitions found in the XML file after parsing


_HoldingsStart

public void _HoldingsStart(Attributes attrs)

_HoldingsEnd

public void _HoldingsEnd()

_catalogStart

public void _catalogStart(Attributes attrs)

_catalogEnd

public void _catalogEnd()

_descStart

public void _descStart(Attributes attrs)

_descEnd

public void _descEnd()

_serverStart

public void _serverStart(Attributes attrs)

_serverEnd

public void _serverEnd()

_databaseStart

public void _databaseStart(Attributes attrs)

_databaseEnd

public void _databaseEnd()

_catnameStart

public void _catnameStart(Attributes attrs)

_catnameEnd

public void _catnameEnd()

_ddnameStart

public void _ddnameStart(Attributes attrs)

_ddnameEnd

public void _ddnameEnd()

save

public void save(File dir,
                 List catalogs)
Save the given list of catalog descriptions as a set of IRSA XML files in the given directory.


_countStart

public void _countStart(Attributes attrs)

_countEnd

public void _countEnd()

_ERRORStart

public void _ERRORStart(Attributes attrs)

_ERROREnd

public void _ERROREnd()

main

public static void main(String[] args)
Test cases



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.