}
}
@Override
public TableAttachment unmarshal(TableAttachmentString tas) throws Exception {
TableAttachment ta = new TableAttachment();
String[] header = tas.getTableHeader().split("\\s+");
String[] body = tas.getTableBody();
// create the columns
for(String column : header)
ta.addColumn(column);
// add the values
for(int row = 0; row < body.length; row++) {
String[] rowArr = body[row].split("\\s+");
for(int column = 0; column < rowArr.length; column++) {
ta.addValue(header[column], row, rowArr[column]);
}
}
return ta;
}