示例#1
0
 /**
  * Constructor.
  *
  * @param sink table destination
  * @param itable index of table to be streamed - 0 means the first TABLE element encountered, 1
  *     means the second etc
  * @param strict whether to enforce strict reading of the VOTable standard
  */
 public TableStreamer(TableSink sink, int itable, boolean strict) {
   super(strict);
   setTableHandler(null);
   setReadHrefTables(false);
   sink_ = sink;
   skipTables_ = itable;
   namespacing_ = Namespacing.getInstance();
 }
示例#2
0
 public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
     throws SAXException {
   super.startElement(namespaceURI, localName, qName, atts);
   String tagName = namespacing_.getVOTagName(namespaceURI, localName, qName);
   if ("VOTABLE".equals(tagName)) {
     isVotable_ = true;
   }
   if ("TABLE".equals(tagName)) {
     if (skipTables_-- == 0) {
       setReadHrefTables(true);
       setTableHandler(this);
     }
   }
 }