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 and Description |
|---|
DalResultXMLFilter(org.xml.sax.XMLReader parent,
uk.ac.starlink.votable.Namespacing namespacing)
Constructor.
|
| Modifier and Type | Method and 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) |
endDocument, 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 interface org.xml.sax.ContentHandlerstartElement 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 interface org.xml.sax.ContentHandlerendElement 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 interface org.xml.sax.ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping 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 interface org.xml.sax.ContentHandlercharacters 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 interface org.xml.sax.ContentHandlerignorableWhitespace 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 interface org.xml.sax.ContentHandlerprocessingInstruction in class org.xml.sax.helpers.XMLFilterImplorg.xml.sax.SAXExceptionpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerskippedEntity 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 © 2017 Central Laboratory of the Research Councils. All Rights Reserved.