public class TableContentHandler extends Object implements ContentHandler
TableHandler object which, if non-null,
is messaged for every suitable DATA element in the
input stream. Inline tables (TABLEDATA ones and FITS/BINARY/BINARY2 ones
in which STREAM element contains the byte data as text children)
are always messaged to the handler. Externally-referenced ones
(FITS/BINARY/BINARY2 ones in which the data is located from an
href attribute on the STREAM element) may either be ignored
or streamed to the table handler according to the setting of
the setReadHrefTables member.| Constructor and Description |
|---|
TableContentHandler(boolean strict)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
Locator |
getLocator()
Returns the document locator.
|
boolean |
getReadHrefTables()
Indicates whether href-referenced tables should be streamed to the
table handler.
|
TableHandler |
getTableHandler()
Returns the TableHandler object for this parser.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
setReadHrefTables(boolean readHrefs)
Sets whether href-referenced tables should be streamed to the table
handler.
|
void |
setTableHandler(TableHandler handler)
Sets the TableHandler object for this parser.
|
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
public TableContentHandler(boolean strict)
strict - whether to effect a strict reading of the
VOTable standardpublic void setTableHandler(TableHandler handler)
handler - table handlerpublic TableHandler getTableHandler()
public void setReadHrefTables(boolean readHrefs)
readHrefs - if true, externally-referenced tables will be
messaged to the handler, if false they will be ignoredpublic boolean getReadHrefTables()
public Locator getLocator()
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.