public class DalResultXMLFilter
extends org.xml.sax.helpers.XMLFilterImpl
In many cases, you can just use the getDalResultTable(uk.ac.starlink.votable.VOElementFactory, org.xml.sax.InputSource)
utility method.
| Constructor | Description |
|---|---|
DalResultXMLFilter(org.xml.sax.XMLReader parent,
uk.ac.starlink.votable.Namespacing namespacing) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
characters(char[] ch,
int start,
int length) |
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
|
void |
endPrefixMapping(java.lang.String prefix) |
|
static uk.ac.starlink.table.StarTable |
getDalResultTable(uk.ac.starlink.votable.VOElementFactory vofact,
org.xml.sax.InputSource inSrc) |
Utility method which can return the single results table from a
DAL-type response.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
|
static uk.ac.starlink.votable.VOElement |
parseDalResult(uk.ac.starlink.votable.VOElementFactory vofact,
org.xml.sax.InputSource inSrc) |
Utility method which uses an instance of this class to turn a SAX
InputSource into a DOM.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
|
void |
skippedEntity(java.lang.String name) |
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, startDocument, unparsedEntityDecl, warningpublic DalResultXMLFilter(org.xml.sax.XMLReader parent,
uk.ac.starlink.votable.Namespacing namespacing)
parent - parent SAX readernamespacing - VOTable namespacing policy to employpublic void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic static uk.ac.starlink.votable.VOElement parseDalResult(uk.ac.starlink.votable.VOElementFactory vofact,
org.xml.sax.InputSource inSrc)
throws java.io.IOException
vofact - factory which can generate VOTable DOMsinSrc - source of the SAX streamjava.io.IOExceptionpublic static uk.ac.starlink.table.StarTable getDalResultTable(uk.ac.starlink.votable.VOElementFactory vofact,
org.xml.sax.InputSource inSrc)
throws java.io.IOException
vofact - factory which can generate VOTable DOMsinSrc - source of the SAX streamjava.io.IOException - in case of error, including an ERROR-valued
QUERY_STATUS in the response, or no suitable table foundCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.