Skip to content
Snippets Groups Projects
Commit 7613f228 authored by gmantele's avatar gmantele
Browse files

[TAP] Fix bug in VOTable reading. The STIL consumer must be in a different...

[TAP] Fix bug in VOTable reading. The STIL consumer must be in a different thread. OnceRowPipe has been then replaced by a new internal static class re-doing the same work plus some adaptations, particularly to stop properly the stream reading before reaching the end of the VOTable.
parent 9b8fe1c9
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ import com.oreilly.servlet.multipart.ExceededSizeException;
* </p>
*
* @author Gr&eacute;gory Mantelet (ARI)
* @version 2.0 (08/2014)
* @version 2.0 (12/2014)
* @since 2.0
*/
public class LimitedTableIterator implements TableIterator {
......@@ -171,7 +171,7 @@ public class LimitedTableIterator implements TableIterator {
}
@Override
public TAPColumn[] getMetadata(){
public TAPColumn[] getMetadata() throws DataReadException{
return innerIt.getMetadata();
}
......
......@@ -21,8 +21,8 @@ package tap.data;
import java.util.NoSuchElementException;
import adql.db.DBType;
import tap.metadata.TAPColumn;
import adql.db.DBType;
/**
* <p>Let's iterate on each row and then on each column over a table dataset.</p>
......@@ -50,8 +50,8 @@ import tap.metadata.TAPColumn;
* }
* </pre>
*
* @author Gr&eacute;gory Mantelet (ARI) - gmantele@ari.uni-heidelberg.de
* @version 2.0 (08/2014)
* @author Gr&eacute;gory Mantelet (ARI)
* @version 2.0 (12/2014)
* @since 2.0
*/
public interface TableIterator {
......@@ -70,7 +70,7 @@ public interface TableIterator {
*
* @see #getColType()
*/
public TAPColumn[] getMetadata();
public TAPColumn[] getMetadata() throws DataReadException;
/**
* <p>Go to the next row if there is one.</p>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment