1
2
3
4
5
6
7 package org.astrogrid.dataservice.impl.ukssdc;
8
9 import java.io.IOException;
10 import org.astrogrid.tableserver.out.FilteredTableWriter;
11 import org.astrogrid.tableserver.out.TableWriter;
12
13 /***
14 * Includes a column in the table that refers to the Defines the methods a table writer must implement...
15 *
16 * @author M Hill
17 */
18
19 public class UrlToTriTableWriter extends FilteredTableWriter {
20
21
22 public UrlToTriTableWriter(TableWriter writer) {
23 super(writer);
24 }
25
26 /*** Writes the given array of values out */
27 public void writeRow(Object[] colValues) throws IOException {
28
29
30 String url = "(url to file will go here)";
31
32
33 Object[] newValues = new Object[colValues.length+1];
34 for (int i = 0; i < colValues.length; i++) {
35 newValues[i] = colValues[i];
36 }
37 newValues[colValues.length] = url;
38
39 writer.writeRow(newValues);
40 }
41
42 }
43
44