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 ContentHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.