Package org.molgenis.util.tuple

Examples of org.molgenis.util.tuple.ValueTuple


  }

  @Test
  public void write() throws IOException
  {
    excelSheetWriter.write(new ValueTuple(Arrays.asList("val1", "val2", "val3")));
    excelSheetWriter.write(new ValueTuple(Arrays.asList("val4", "val5")));
    excelWriter.close();

    ExcelReader excelReader = new ExcelReader(new ByteArrayInputStream(bos.toByteArray()), false);
    try
    {
View Full Code Here


  {
    StringWriter strWriter = new StringWriter();
    CsvWriter csvWriter = new CsvWriter(strWriter);
    try
    {
      csvWriter.write(new ValueTuple(Arrays.asList("val1", "val2")));
      csvWriter.write(new ValueTuple(Arrays.asList("val3", "val4")));
      assertEquals(strWriter.toString(), "\"val1\",\"val2\"\n\"val3\",\"val4\"\n");
    }
    finally
    {
      csvWriter.close();
View Full Code Here

                  String value = values[i].isEmpty() ? null : values[i];
                  values[i] = processCell(value, false);
                }
                if (colNamesMap != null) next = new ValueIndexTuple(colNamesMap, Arrays.asList(values));
                else
                  next = new ValueTuple(Arrays.asList(values));
              }
              else
              {
                next = null;
              }
View Full Code Here

TOP

Related Classes of org.molgenis.util.tuple.ValueTuple

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.