Class CatalogSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
uk.ac.starlink.topcat.vizier.CatalogSaxHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
SAX content handler which can make sense of a VizieR query for catalogues.
The stream expected is of the kind you get if you make a query like
.../viz-bin/?votable&-meta to vizier (as at Nov 2009).
May 2010: .../viz-bin?votable&-meta=t gives information
about sub-tables too.- Since:
- 4 nov 2009
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String qName) protected abstract voidgotCatalog(VizierCatalog cat) Called when a catalogue has been obtained from the SAX stream.voidstartElement(String uri, String localName, String qName, Attributes atts) Methods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Constructor Details
-
CatalogSaxHandler
public CatalogSaxHandler(boolean includeObsolete) Constructor.- Parameters:
includeObsolete- true to include all results, false to omit older versions of the same catalog
-
-
Method Details
-
gotCatalog
Called when a catalogue has been obtained from the SAX stream.- Parameters:
cat- newly acquired catlogue- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-